Error when changing product UOM in purchase order line

Bug #1294377 reported by David Lefever @ Taktik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

In OpenERP V6.1, when creating or modifying a purchase order line, if we change the Product UOM (product_uom), an error is raised:

 File "/home/odoo/runbot/static/openerp-dev-6-1-31025/server/openerp/addons/purchase/purchase.py", line 710, in onchange_product_uom
    name=name, price_unit=price_unit, notes=notes, context=context)
TypeError: onchange_product_id() got an unexpected keyword argument 'fiscal_position_id'

This is caused by the module warning, in the file warning.py, the signature of the method onchange_product_id is not correct, it declares a keyword fiscal_position, but in purchase/purchase.py the keyword is fiscal_position_id.

Tested on the runbot with the latest 6.1 version, openerp-dev-6-1-31025.

Regards,
David.

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.