4 changed files with 30 additions and 34 deletions
@ -1,15 +1,13 @@ |
|||||
/** @odoo-module **/ |
/** @odoo-module **/ |
||||
/** |
/** |
||||
* Extends PosGlobalState and it extends Registries |
* Extends PosStore and it extends Registries |
||||
* Override the _processData method to process loaded data |
* Override the _processData method to process loaded data |
||||
**/ |
**/ |
||||
import { PosGlobalState} from 'point_of_sale.models'; |
import {patch} from "@web/core/utils/patch"; |
||||
import Registries from 'point_of_sale.Registries'; |
import {PosStore} from "@point_of_sale/app/store/pos_store"; |
||||
|
patch(PosStore.prototype, { |
||||
const AnalyticAccount = (PosGlobalState) => class AnalyticAccount extends PosGlobalState { |
|
||||
async _processData(loadedData) { |
async _processData(loadedData) { |
||||
await super._processData(...arguments); |
await super._processData(...arguments); |
||||
this.res_config_settings = loadedData['res.config.settings']; |
this.res_config_settings = loadedData['res.config.settings']; |
||||
} |
|
||||
} |
} |
||||
Registries.Model.extend(PosGlobalState, AnalyticAccount); |
}); |
Loading…
Reference in new issue