b061644e0c4519f4a45351fa9650a0637e7e18e4
The sales order is a important model. Since it generates invoices and other business documents, the company_id field should be required as the company must be propagate to generated documents. Moreover, a sales order without a company raises a error, and we need a company to compute the multi currency rate. This commit fixes that bug, by setting the company_id field required on sales order and sale order line. Note: we only simplify the ir.rule of sale.order, and not the one of sale.order.line. Indeed, when creating an SOL, the creation is done in 2 times by the ORM: first insert, then UPDATE with computed stored fields. As company_id of SOL is a stored related, the check access rules raises during the inconsistent state (between INSERT and UPDATE, company_id is False). Maybe this will be clean after the big refactoring of the ORM. Task-1999686
…
…
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%