[7.0] _fiscal_position_map() got multiple values for keyword argument 'uid'

Bug #1265067 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released
Maxime Chambreuil (http://www.savoirfairelinux.com)

Bug Description

Using latest revision of the 7.0 branches, I get this error message when I select the customer in a new sales order :

Server Traceback (most recent call last):
  File "/home/max/openerp/********/bzr/web/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/7.0/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/7.0/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/7.0/server/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/7.0/server/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/7.0/server/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/7.0/server/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/max/openerp/********/bzr/addons/delivery/sale.py", line 34, in onchange_partner_id
    result = super(sale_order, self).onchange_partner_id(cr, uid, ids, part, context=context)
  File "/home/max/openerp/********/bzr/fiscal-rules/account_fiscal_position_rule_sale/sale.py", line 64, in onchange_partner_id
    return self._fiscal_position_map(cr, uid, result, **kwargs)
TypeError: _fiscal_position_map() got multiple values for keyword argument 'uid'

Related branches

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

Some of my variables :

context = {'lang': 'fr_FR', 'shop_id': 1, 'tz': 'Canada/Eastern', 'uid': 1}
kwargs = {'lang': 'fr_FR', 'tz': 'Canada/Eastern', 'uid': 1, 'partner_shipping_id': 232, 'shop_id': 1, 'context': {'lang': 'fr_FR', 'shop_id': 1, 'tz': 'Canada/Eastern', 'uid': 1}, 'partner_invoice_id': 232, 'partner_id': 232}

As the context is copied, uid is there twice.

Changed in openerp-fiscal-rules:
status: New → Fix Committed
assignee: nobody → Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
Changed in openerp-fiscal-rules:
status: Fix Committed → Confirmed
status: Confirmed → Fix Released
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.