aa9dcc2bce2002ef62bfd784cc94a4762f3253cf
1) Invoicing wizard refactoring * reduce the use of context in the business logic, store the orders being invoiced * factorize invoice creation values, using the correct method from the sale.order model * switch from default fields to computed fields, and avoid computing unnecessary fields when the wizard is opened to invoice multiple orders together (most fields are only used for down payments) * Rely on python constraints instead of error messages scattered accross business methods to notify the user that the invoice cannot be created. * Clean the code to make it easier to follow, understand and maintain 2) Distinguish Down Payment Invoice lines from standard ones (with a dedicated field) Allows to stop relying on the dumb property, not specifically reliable, e.g. if the down payment product is modified in the settings after down payments orders were already created. closes odoo/odoo#98600 Related: odoo/enterprise#30653 Related: odoo/upgrade#3799 Signed-off-by: Victor Feyens (vfe) <vfe@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%