Ravi Gohil (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-580021-rgo into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #1061494 in OpenERP Addons: "Purchase order fiscal position"
  https://bugs.launchpad.net/openobject-addons/+bug/1061494

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580021-rgo/+merge/128864

Hello,

Steps to reproduce:
1) Create new db with demo data and install purchase and warning modules,
2) open any record in Purchase/Purchase Management/Request for Quotation,
3) open purchase order line and change the product uom,

Traceback will faced saying "TypeError: onchange_product_id() got an unexpected 
keyword argument 'fiscal_position_id'"

This MP contains fix for this issue.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580021-rgo/+merge/128864
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-580021-rgo.
=== modified file 'warning/warning.py'
--- warning/warning.py	2012-09-06 10:32:09 +0000
+++ warning/warning.py	2012-10-10 06:37:23 +0000
@@ -231,7 +231,7 @@
 class purchase_order_line(osv.osv):
     _inherit = 'purchase.order.line'
     def onchange_product_id(self,cr, uid, ids, pricelist, product, qty, uom,
-            partner_id, date_order=False, fiscal_position=False, date_planned=False,
+            partner_id, date_order=False, fiscal_position_id=False, date_planned=False,
             name=False, price_unit=False, notes=False, context=None):
         warning = {}
         if not product:
@@ -250,7 +250,7 @@
             warning['message'] = message
 
         result =  super(purchase_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty, uom,
-            partner_id, date_order, fiscal_position)
+            partner_id, date_order, fiscal_position_id)
 
         if result.get('warning',False):
             warning['title'] = title and title +' & '+result['warning']['title'] or result['warning']['title']

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to