diff options
| author | Goffin Simon <sig@odoo.com> | 2020-12-31 11:04:08 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2021-01-04 11:21:09 +0000 |
| commit | abff1ca94bcc829250b63fd9677890988b796819 (patch) | |
| tree | 9f2df3e9ec75be2185a9656df5f66166c4b85d8e /addons | |
| parent | 1237940249f259907d55229b2cf5954a31896de1 (diff) | |
[FIX] point_of_sale: Multicompany tax
Steps to reproduce the bug:
- Create a multi-company environment with two companies A & B
- Create two sales taxes TA & TB, one for company A & one for company B
- Created a shared product P and assign both TA & TB
- Login with user having access of both companies
- Open POS session and select P
Bug:
A traceback was raised
opw:2422866
closes odoo/odoo#63998
X-original-commit: 221d6cbd827bc3cf10553448f3e9ae95cabb551f
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/static/src/js/models.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 3a4794516db..30e662ed18d 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2267,8 +2267,8 @@ exports.Orderline = Backbone.Model.extend({ var taxtotal = 0; var product = this.get_product(); - var taxes_ids = product.taxes_id; var taxes = this.pos.taxes; + var taxes_ids = _.filter(product.taxes_id, t => t in this.pos.taxes_by_id); var taxdetail = {}; var product_taxes = []; |
