Merge lp:~openerp-dev/openobject-addons/7.0-opw-589913-rgo into lp:openobject-addons/7.0

Proposed by Ravi Gohil (OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 9875
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-589913-rgo
Merge into: lp:openobject-addons/7.0
Diff against target: 11 lines (+1/-1)
1 file modified
l10n_multilang/l10n_multilang.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-589913-rgo
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+158175@code.launchpad.net

Description of the change

Hi,

For better understanding of the issue and steps for reproducing it, please refer to the bug description: lp:1152011

This issue was caused because wrong value is being set for "res_id"(Record ID) field of "ir_translation" object while copying translation from "Account Tax Template" to "Account Tax" names which then causes problem(by mean of execution of "update" query defined in translate_fields() function of ir_translation.py) when we try to see the translated value by clicking on flag of account tax name.

This branch will fix this issue. Kindly review it.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Juan Rial (OpenERP) (jri-openerp) wrote :

Committed in rev. 9875, rev_id <email address hidden>

Thanks for the patch!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_multilang/l10n_multilang.py'
2--- l10n_multilang/l10n_multilang.py 2012-12-06 14:56:32 +0000
3+++ l10n_multilang/l10n_multilang.py 2013-04-10 17:36:22 +0000
4@@ -139,7 +139,7 @@
5 def _process_taxes_translations(self, cr, uid, obj_multi, company_id, langs, field, context=None):
6 obj_tax_template = self.pool.get('account.tax.template')
7 obj_tax = self.pool.get('account.tax')
8- in_ids = sorted([x.id for x in obj_multi.chart_template_id.tax_template_ids])
9+ in_ids = [x.id for x in obj_multi.chart_template_id.tax_template_ids]
10 out_ids = obj_tax.search(cr, uid, [('company_id', '=', company_id)], order='id')
11 return self.process_translations(cr, uid, langs, obj_tax_template, field, in_ids, obj_tax, out_ids, force_write=False, context=context)
12