← Back to team overview

openerp-india team mailing list archive

[Bug 1061494] [NEW] Purchase order fiscal position

 

Public bug reported:

onchange_product_id() got an unexpected keyword argument
'fiscal_position_id'

Needs refactoring of onchange_product_id() and onchange_product_uom()
from purchase order line.

Create a new purchase order, try to create a new purchase order
line(even from client and web) it will raise an error

2012-10-04 09:27:44,492 21014 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/addons_6.1/audittrail/audittrail.py", line 495, in execute_cr
    return fct_src(cr, uid, model, method, *args)
  File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/addons_6.1/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'
2012-10-04 09:27:44,493 21014 ERROR ? openerp.netsvc: onchange_product_id() got an unexpected keyword argument 'fiscal_position_id'

We are using Openerp 6.1 with the latest revision of server, addons...

I tried on runbot too and it raised the same error.

** 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/1061494

Title:
  Purchase order fiscal position

Status in OpenERP Addons (modules):
  New

Bug description:
  onchange_product_id() got an unexpected keyword argument
  'fiscal_position_id'

  Needs refactoring of onchange_product_id() and onchange_product_uom()
  from purchase order line.

  Create a new purchase order, try to create a new purchase order
  line(even from client and web) it will raise an error

  2012-10-04 09:27:44,492 21014 ERROR ? openerp.osv.osv: Uncaught exception
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/addons_6.1/audittrail/audittrail.py", line 495, in execute_cr
      return fct_src(cr, uid, model, method, *args)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1-py2.7.egg/openerp/addons_6.1/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'
  2012-10-04 09:27:44,493 21014 ERROR ? openerp.netsvc: onchange_product_id() got an unexpected keyword argument 'fiscal_position_id'

  We are using Openerp 6.1 with the latest revision of server, addons...

  I tried on runbot too and it raised the same error.

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


Follow ups

References