473cab3a91a8d24305539ab6c38d9aee27711fa0
To reproduce, open a pos session. Finalize an order with invoicing. Error message is shown. Invoicing in pos calls doAction of the action manager. The first time doAction is called, it triggers a chain of events and a side effect of that chain is to instantiate two mail owl components which isn't possible because not all mail assets are loaded. A very quick fix is to bypass that mentioned chain of events by setting isStarted flag to be true. Aside from bypassing the instantiation of mail components, there are procedures that were skipped as well which includes: 1. setting the bus to listen to scroll events 2. setting odoo.isReady to true 3. adding a class to the action manager element All of the above is not important in pos and can be skipped so this quick fix is valid. However, this fix doesn't actually solve the real problem which is the fact the pos is loading unnecessary assets. This commit implements the quick fix. Cleaning up pos assets will be done in the future. closes odoo/odoo#54478 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%