[6.1] TypeError: unhashable type: 'list' in res_partner.view_header_get()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Expired
|
Undecided
|
Unassigned | ||
Therp Backports (Deprecated) |
Fix Released
|
Low
|
Stefan Rijnhart (Opener) | ||
Server-6.1 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have created a client_
File "/home/
return _('Partners: ')+self.
File "/home/
return self._list_
ext)
File "/home/
if id not in self._data:
TypeError: unhashable type: 'list'
The reason for this is that the custom view_header_get method of res.partner anticipates the 'category_id' key in the context to be a single id, used to inject the category name in the header for the 'Partners per category' view. However, in my case the context contains all the form's field values with 'category_id' having a value in [(6, 0, id)] syntax. The custom method on res.partner should anticipate this possibility (and then ignore the category_id).
Cheers,
Stefan.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 13 lines (+2/-1)1 file modifiedopenerp/addons/base/res/res_partner.py (+2/-1)
- Holger Brunn (Therp): Approve
-
Diff: 13 lines (+2/-1)1 file modifiedopenerp/addons/base/res/res_partner.py (+2/-1)
Changed in therp-backports: | |
milestone: | none → 6.1-maintenance |
assignee: | nobody → Stefan Rijnhart (Therp) (stefan-therp) |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in therp-backports: | |
status: | Fix Committed → Fix Released |
Hello Stefan Rijnhart ,
I have checked this issue at my end with latest trunk.But
I did not face any problem like your,So would you please
more information regarding this issue.
Thanks and waiting for reply!