Merge lp:~stefan-opener/therp-backports/addons61-lp939588-check_partner_category_id_is_not_list into lp:therp-backports/server-6.1
Proposed by
Stefan Rijnhart (Opener)
Status: | Merged |
---|---|
Merged at revision: | 4302 |
Proposed branch: | lp:~stefan-opener/therp-backports/addons61-lp939588-check_partner_category_id_is_not_list |
Merge into: | lp:therp-backports/server-6.1 |
Diff against target: |
13 lines (+2/-1) 1 file modified
openerp/addons/base/res/res_partner.py (+2/-1) |
To merge this branch: | bzr merge lp:~stefan-opener/therp-backports/addons61-lp939588-check_partner_category_id_is_not_list |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Holger Brunn (Therp) | Approve | ||
Review via email: mp+156296@code.launchpad.net |
To post a comment you must log in.
if you have a context like
{'category_id': [(6, 0, 42)]}
as you mention in your bug report, the condition you add evaluates to False.
Shouldn't it be get('category_ id') or not isinstance( context[ 'category_ id'], (int, long))
not context.
?