[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#68102 X-original-commit: c087868a9a2b0aed22e8418b120f849bf680f918 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -2262,6 +2262,7 @@ exports.Orderline = Backbone.Model.extend({
|
||||
|
||||
var product = this.get_product();
|
||||
var taxes_ids = this.tax_ids || product.taxes_id;
|
||||
taxes_ids = _.filter(taxes_ids, t => t in this.pos.taxes_by_id);
|
||||
var taxes = this.pos.taxes;
|
||||
var taxdetail = {};
|
||||
var product_taxes = [];
|
||||
|
||||
Reference in New Issue
Block a user