From 14dc3c2f7e16074acd67c6339f1dcd1aa0c9ab1a Mon Sep 17 00:00:00 2001 From: Ahmed Aly Date: Thu, 5 Apr 2018 08:32:40 +0200 Subject: [PATCH] =?UTF-8?q?Fall=205402:=20CR1=20-=20H=C3=A4ndlerrabatt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/custom-addons/dp_custom/models/sale.py | 2 +- ext/custom-addons/dp_custom/views/sale_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index a50f1f36..baa7c48c 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -446,7 +446,7 @@ class SaleOrderLine(models.Model): pricelist_context = dict(context_partner, uom=self.product_uom.id) price, rule_id = self.order_id.pricelist_id.with_context(pricelist_context).get_product_price_rule( - self.product_id, self.product_uom_qty or 1.0, self.order_id.partner_id) + self.product_id, self.product_uom_qty or 1.0, self.order_id.partner_invoice_id) new_list_price, currency_id = self.with_context(context_partner)._get_real_price_currency(self.product_id, rule_id, self.product_uom_qty, diff --git a/ext/custom-addons/dp_custom/views/sale_views.xml b/ext/custom-addons/dp_custom/views/sale_views.xml index bc6ab6d9..f18aa7ed 100644 --- a/ext/custom-addons/dp_custom/views/sale_views.xml +++ b/ext/custom-addons/dp_custom/views/sale_views.xml @@ -46,7 +46,7 @@ 3 - +