From 5609c037cec86730b9e5a1a5591b2fa6c0b32b0c Mon Sep 17 00:00:00 2001 From: husen daudi Date: Wed, 8 Apr 2009 12:35:28 +0530 Subject: [PATCH] Bugfix for quantity onchange on sale.order.line bzr revid: hda@hda-20090408070528-0ukeu1apbqog4v2u --- 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 9c315f4046f..d75bfb0275e 100644 --- a/addons/warning/warning.py +++ b/addons/warning/warning.py @@ -137,7 +137,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): + fiscal_position=False, flag=False): warning = {} if not product: return {'value': {'th_weight' : 0, 'product_packaging': False, @@ -152,7 +152,7 @@ class sale_order_line(osv.osv): message= product_info.sale_line_warn_msg result = super(sale_order_line, self).product_id_change( cr, uid, ids, pricelist, product, qty, uom, qty_uos, uos, name, partner_id, - lang, update_tax, date_order, packaging, fiscal_position) + lang, update_tax, date_order, packaging, fiscal_position, flag) if title and message: warning['title']=title[0] warning['message']=message