You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
508 B
11 lines
508 B
//@odoo-module
|
|
import { PosGlobalState} from 'point_of_sale.models';
|
|
import Registries from 'point_of_sale.Registries';
|
|
const StockLotGlobalState = (PosGlobalState) => class StockLotGlobalState extends PosGlobalState {
|
|
async _processData(loadedData) {
|
|
await super._processData(...arguments);
|
|
this.db.product_by_lot = loadedData['multi.barcode.products'];
|
|
this.db.product_by_lot_id = loadedData['multi_barcode']
|
|
}
|
|
}
|
|
Registries.Model.extend(PosGlobalState, StockLotGlobalState);
|