5c09a8d9f7df6d9790054a2be66ce8e9d3697ff9
Reproduce : 1. Add a default analytical rule: if Coin Gourmand partner then Administrative analytical account 2. Create a PO at the Coin Gourmand supplier, add a product, and select the Internal analytical account. 3. Bill for this product. Result : Internal analytical account has disappeared from the invoice line. It has been replaced by Administrative. Issue : AccountMove.create() computes an account in the move and this causes the analytic account to be reset at its default value from the rule. Fix : Since the account pocalypse in 13.0, account.move is making magic things during the creation of the invoice to create dynamically the invoice lines like account.invoice did before this huge refactoring. The create is making a 'New' record to simulate the onchange but this code is a hack triggering unexpected recomputation like the analytic account. To avoid that, we ensure to assign the minimum number of fields to preserve fields like the analytic account. closes odoo/odoo#79321 X-original-commit: 876e2d1073312fe65cb6b2e3038235aeaa082c8a Related: odoo/enterprise#22074 Signed-off-by: Laurent Smet <las@openerp.com> Signed-off-by: Josse Colpaert <jco@openerp.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%