fb215afb82d7241134bf4b41eefd4f7f46d3bc8a
When creating a sub company with l10n_ar, we get a ValidationError due to the check on existing accounting entries on root company. Steps: - Create a new company with l10n_ar, and create some moves - Create a branch for the company and save -> ValidationError: "Could not change the AFIP Responsibility of this company because there are already accounting entries." In `account.res_company._existing_accounting`, we check if there are existing move lines in both parent and child companies, while we would like to check only new company when it is calling from `l10n_ar.res_company._check_accounting_info`. With this commit, we change just change the domain and use `self.id` instead of `self.root_id.id` and we call `_existing_accounting` with `root_id` where needed. opw-3572926 closes odoo/odoo#140795 X-original-commit: 575971458d454d546d967ec4141d8c47fc28e666 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: Guillaume Vanleynseele (guva) <guva@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%