From ecab5ad2862d771948cd59b80536e5e67b4bdbf0 Mon Sep 17 00:00:00 2001 From: "Kirti Savalia (OpenERP)" Date: Wed, 12 Oct 2011 13:04:12 +0530 Subject: [PATCH] [FIX]:pass the missing context in product_id_change method lp bug: https://launchpad.net/bugs/872689 fixed bzr revid: ksa@tinyerp.com-20111012073412-h7k3tr07bcy2vpup --- addons/warning/warning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/warning/warning.py b/addons/warning/warning.py index ab7a5926653..9f699ab9911 100644 --- a/addons/warning/warning.py +++ b/addons/warning/warning.py @@ -197,7 +197,7 @@ class sale_order_line(osv.osv): def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, - fiscal_position=False, flag=False): + fiscal_position=False, flag=False, context=None): warning = {} if not product: return {'value': {'th_weight' : 0, 'product_packaging': False, @@ -232,7 +232,7 @@ class purchase_order_line(osv.osv): _inherit = 'purchase.order.line' def product_id_change(self,cr, uid, ids, pricelist, product, qty, uom, partner_id, date_order=False, fiscal_position=False, date_planned=False, - name=False, price_unit=False, notes=False): + name=False, price_unit=False, notes=False, context=None): warning = {} if not product: return {'value': {'price_unit': 0.0, 'name':'','notes':'', 'product_uom' : False}, 'domain':{'product_uom':[]}}