c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #09404
[Bug 689897] Re: [6.0-RC1] warning purchase_order_line call
yes, it's right.
In purchase/purchase.py , function is defined by :
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):
and now In warning/warnig.py, function is defined by :
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):
and not by
def product_id_change(self,cr, uid, ids, pricelist, product, qty, uom,
partner_id, date_order=False, fiscal_position=False):
in initial version.
What i don't understand is why in function we found :
result = super(purchase_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty, uom,
partner_id, date_order, fiscal_position)
and not :
result = super(purchase_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty, uom,
partner_id, date_order, fiscal_position, date_planned, name, price_unit, notes)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/689897
Title:
[6.0-RC1] warning purchase_order_line call
Status in OpenObject Addons Modules:
Invalid
Bug description:
try to use warning and inherit product_id_change in purchase_order_line.
In purchase module, purchase_order_line have a function product_id_change with 15 parameters.
In warning module, purchase_order_line surcharge product_id_change but only with 11 parameters.
When i try to make my product_id_change version, no way to pass 15 parameters because of warning definition.
References