[FIX]product_visible_discount: add a company in product_id_change method
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 10 Jan 2012 11:36:25 +0000 (17:06 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 10 Jan 2012 11:36:25 +0000 (17:06 +0530)
lp bug: https://launchpad.net/bugs/912953 fixed

bzr revid: mma@tinyerp.com-20120110113625-j57286pylpidtfnr

addons/product_visible_discount/product_visible_discount.py

index 1577ddd..ece70f3 100644 (file)
@@ -103,7 +103,7 @@ sale_order_line()
 class account_invoice_line(osv.osv):
     _inherit = "account.invoice.line"
 
-    def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None):
+    def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None, company_id=None):
         res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, currency_id, context=context)
 
         def get_real_price(res_dict, product_id, qty, uom, pricelist):