[7.0] _fiscal_position_map() got multiple values for keyword argument 'uid'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-fiscal-rules |
Fix Released
|
Undecided
|
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/
return openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result = super(sale_order, self).onchange_
File "/home/
return self._fiscal_
TypeError: _fiscal_
Related branches
- Raphaël Valyi - http://www.akretion.com: Needs Information
-
Diff: 11 lines (+1/-0)1 file modifiedaccount_fiscal_position_rule_sale/sale.py (+1/-0)
- Sandy Carter (http://www.savoirfairelinux.com): Approve (code review)
- Raphaël Valyi - http://www.akretion.com: Approve
- Yannick Vaucher @ Camptocamp: Approve (code review, no tests)
-
Diff: 20 lines (+2/-3)1 file modifiedaccount_fiscal_position_rule_sale/sale.py (+2/-3)
description: | updated |
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 |
Some of my variables :
context = {'lang': 'fr_FR', 'shop_id': 1, 'tz': 'Canada/Eastern', 'uid': 1} 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}
kwargs = {'lang': 'fr_FR', 'tz': 'Canada/Eastern', 'uid': 1, 'partner_
As the context is copied, uid is there twice.