db68392f7787ff221b085a81a168ad1ced0792ab
Steps to reproduce: - install l10n_be (company B) - stay on Company A and create a cash rounding - Go to Company B and create an invoice - In Other Infos > Cash Rouding Method, set it to the earlier created one - Save Issue: You won't be able to save. But the message is too generic to know what is the cause of it "Missing required account on accountable invoice line." Cause: The field `profit_account_id` is company_dependent. Therefore, the same cash rounding record will be accessible in both companies but in Company B the `profit_account_id` won't be set. When Saving, we compute a cash difference (rounding) and try to create a new line for it. But since there is no account set, the sql constraint will be raised. Solution: The less dirty solution is to have an onchange that check that whenever we want to set a cash rounding method, it has all the required fields set opw-3185950 closes odoo/odoo#123072 X-original-commit: e0df7cafefa3c2956105bd35c5bedc0c5bcdffaa Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.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%