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.
 
 
 
 
 

12 lines
498 B

/** @odoo-module **/
var { PosGlobalState } = require('point_of_sale.models');
const Registries = require('point_of_sale.Registries');
const NewPosGlobalState = (PosGlobalState) => class NewPosGlobalState extends PosGlobalState {
async _processData(loadedData) {
// Load field that in res.config.settings into pos.
await super._processData(...arguments);
this.res_allow_sync = loadedData['res.config.settings'];
}
}
Registries.Model.extend(PosGlobalState, NewPosGlobalState);