summaryrefslogtreecommitdiff
path: root/addons/base_setup/data/base_setup_data.xml
diff options
context:
space:
mode:
authorGraeme Gellatly <gdgellatly@gmail.com>2019-04-09 06:29:39 +0000
committerGoffin Simon <sig@odoo.com>2019-04-29 12:55:45 +0000
commit8e0610f60911004f898380deeba29814c78e58f8 (patch)
tree5745bc8a7bb2a95bfc12a4b4702523923dfeb4bd /addons/base_setup/data/base_setup_data.xml
parentc9d98ec511530c317240563f38d75ea7a7fe3a9c (diff)
[FIX] account: Correctly Filter Product Taxes in Multicompany Case
Steps to reproduce: - Create a product as user for Company A. - Set a tax on it for Company A. - As a user in company B, set a default tax for the account associated with the product and/or company. - As a multicompany user of Company A and B, in company B, create an invoice with the product. When the onchange is triggered - no tax. https://github.com/odoo/odoo/blob/11c950ef23faefb5b826c7fb6eb0dccb8e345ca0/addons/account/models/account_invoice.py#L1644-L1654 Its because first we evaluate product taxes for all companies, if none then the account, if none again then the company. Then they are filtered by company, but in reality the only taxes that need filtering are product taxes (as account taxes and company taxes should already belong) fixes #27696 opw:1963881 closes odoo/odoo#33013 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/base_setup/data/base_setup_data.xml')
0 files changed, 0 insertions, 0 deletions