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.
13 lines
532 B
13 lines
532 B
odoo.define('pos_takeaway.pos', function(require) {
|
|
"use strict";
|
|
var { PosGlobalState } = require('point_of_sale.models');
|
|
const Registries = require('point_of_sale.Registries');
|
|
//model loading to this.res_config_settings
|
|
const NewPosGlobalState = (PosGlobalState) => class NewPosGlobalState extends PosGlobalState {
|
|
async _processData(loadedData) {
|
|
await super._processData(...arguments);
|
|
this.res_config_settings = loadedData['res.config.settings'];
|
|
}
|
|
}
|
|
Registries.Model.extend(PosGlobalState, NewPosGlobalState);
|
|
});
|
|
|