Merge lp:~fabien-morin/unifield-wm/fm-fix-not-active-translation into lp:unifield-wm

Proposed by Fabien MORIN
Status: Merged
Merged at revision: 2750
Proposed branch: lp:~fabien-morin/unifield-wm/fm-fix-not-active-translation
Merge into: lp:unifield-wm
Diff against target: 13 lines (+2/-1)
1 file modified
msf_tools/msf_tools.py (+2/-1)
To merge this branch: bzr merge lp:~fabien-morin/unifield-wm/fm-fix-not-active-translation
Reviewer Review Type Date Requested Status
jftempo Pending
Review via email: mp+284482@code.launchpad.net

Description of the change

[FIX] search implycitly filter on active=True, but here we also need inactive objects.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'msf_tools/msf_tools.py'
2--- msf_tools/msf_tools.py 2016-01-25 11:23:45 +0000
3+++ msf_tools/msf_tools.py 2016-01-29 16:24:33 +0000
4@@ -608,7 +608,8 @@
5 # product.template xml_id is not create, so we search the product.product xml_id
6 if "product.template" in model_name:
7 target_ids = self.pool.get('product.product')\
8- .search(cr, uid, [('product_tmpl_id', '=', target_ids)], context=context)
9+ .search(cr, uid, [('product_tmpl_id', '=',
10+ target_ids), ('active', 'in', ('t', 'f'))], context=context)
11 model_name = 'product.product'
12
13 if isinstance(target_ids, (int, long)):

Subscribers

People subscribed via source and target branches