summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-05-24 13:01:18 +0000
committerjem-odoo <jem@openerp.com>2019-07-04 15:28:24 +0000
commitb061644e0c4519f4a45351fa9650a0637e7e18e4 (patch)
tree83b3a4627ac07fbfb44d7c89a2e7aa9185f76d3b /addons/web/static/src/js/fields/basic_fields.js
parentcaf900e89ea292c56ed773232792a2aab19de8d5 (diff)
[IMP] sale: set company required
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
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions