← Back to team overview

openerp-india team mailing list archive

[Bug 1294377] [NEW] Error when changing product UOM in purchase order line

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1294377

Title:
  Error when changing product UOM in purchase order line

Status in OpenERP Addons (modules):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1294377/+subscriptions


Follow ups

References