From f7495294cb0ba2217fdc560e72c21569931d52d3 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Wed, 7 Sep 2016 15:50:08 +0200 Subject: [PATCH] [FIX] website_quote: fix due to module migration Coming from https://github.com/odoo/odoo/commit/232eea36ab98eb268f712b2083c637a7cb463e2c --- addons/website_quote/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quote/models/sale_order.py b/addons/website_quote/models/sale_order.py index 4e069e2c916..99a1c4d4071 100644 --- a/addons/website_quote/models/sale_order.py +++ b/addons/website_quote/models/sale_order.py @@ -231,7 +231,7 @@ class SaleOrderOption(models.Model): if order.state not in ['draft', 'sent']: return False - order_line = self.order_line.filtered(lambda line: line.product_id == self.product_id) + order_line = order.order_line.filtered(lambda line: line.product_id == self.product_id) if order_line: order_line[0].product_uom_qty += 1 else: