[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:
Joseph Caburnay
2021-08-31 08:46:56 +00:00
parent 7ed01a437f
commit 63f09a6180
@@ -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);
});
}