summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-12-27 11:03:53 +0000
committerjdoutreloux <jud@odoo.com>2020-02-17 17:06:05 +0000
commit0ab7da57ab15a8c11e724a77a6a9cc64e7d3c78c (patch)
treeccf720bd8ee750b736d3aa1b1191080c57452471 /addons/web/static/src/js/views/basic/basic_controller.js
parent695a1c8adab65fd02213842c592ad805c2efec8d (diff)
[FIX] sale, account: correct multi-company invoicing
During a forward port, a regression was introduced that broke the multi-company invoicing flow in Sales. Create a SO in company 1, use the web client with company 2 as the main one. The invoice should be in company 1. This commit fixes that by providing the journal_id in the invoice values (the company of the account move comes from the journal). While making this fix (and adding a test for it), I stumbled upon another multi-company issue when fetching the accounts of the product where the property field was not accessed with the correct company. I fixed it as well. closes odoo/odoo#45551 X-original-commit: 07dbc197007c78633decccef2200a628b7d4a363 Related: odoo/enterprise#8498 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions