[FIX] point_of_sale: call the configureGui before calling start
The chrome.comp.start() call also involves iot device loading which is dependent on Gui to show error when there is any. In this fix, we call configureGui when the Chrome instance is available and before calling start. Part-of: odoo/odoo#73725
This commit is contained in:
@@ -33,9 +33,9 @@ export class ChromeAdapter extends Component {
|
||||
// Little trick to avoid displaying the block ui during the POS models loading
|
||||
const BlockUiFromRegistry = registry.category("main_components").get("BlockUI");
|
||||
registry.category("main_components").remove("BlockUI");
|
||||
configureGui({ component: chrome.comp });
|
||||
await chrome.comp.start();
|
||||
registry.category("main_components").add("BlockUI", BlockUiFromRegistry);
|
||||
configureGui({ component: chrome.comp });
|
||||
setupResponsivePlugin(this.env);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user