Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-872689-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #872689 in OpenERP Addons: "[trunk]warning:create Sale order and Purchase
order"
https://bugs.launchpad.net/openobject-addons/+bug/872689
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-872689-ksa/+merge/79072
pass the missing context in product_id_change method
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-872689-ksa/+merge/79072
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-872689-ksa.
=== modified file 'warning/warning.py'
--- warning/warning.py 2011-02-24 16:35:00 +0000
+++ warning/warning.py 2011-10-12 07:49:36 +0000
@@ -197,7 +197,7 @@
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 @@
_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':[]}}
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp