Merge lp:~rruebner/server-env-tools/7.0_fix_mass_editing into lp:~server-env-tools-core-editors/server-env-tools/7.0
Proposed by
Robert Rübner
Status: | Work in progress |
---|---|
Proposed branch: | lp:~rruebner/server-env-tools/7.0_fix_mass_editing |
Merge into: | lp:~server-env-tools-core-editors/server-env-tools/7.0 |
Diff against target: |
15 lines (+4/-1) 1 file modified
mass_editing/mass_editing.py (+4/-1) |
To merge this branch: | bzr merge lp:~rruebner/server-env-tools/7.0_fix_mass_editing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stefan Rijnhart (Opener) | Needs Fixing | ||
Joël Grand-Guillaume @ camptocamp | code review + tests | Approve | |
Yannick Vaucher @ Camptocamp | Needs Information | ||
Review via email: mp+204711@code.launchpad.net |
Description of the change
Hi all,
it is possible that the model_id in the for loop is an integer and no string in the overwritten search method in mass_editing.py. We have to ensure that the split call will be done on a string. In addition it is not good to cut the first and the last character of this string, I removed the cutting too.
Without this fix:
e. g. If you edit an email template and select "Search More..." for Field in the Dynamic Value Builder section an error "TypeError: 'int' object has no attribute '_getitem_'" will occur.
Regards
Robert
To post a comment you must log in.
Unmerged revisions
- 58. By Robert Rübner
-
[FIX] Updated search overwriting for ir_model_fields.
Hi Robert,
Thanks for the fix. Is there any bug report about this TypeError issue? Can you link it or create it?
This to improve bug traceability.
Regards