[IMP] wording: children intead of childs (again)

bzr revid: ls@numerigraphe.fr-20101025085222-pm6ovutgvb0jg3af
This commit is contained in:
Numerigraphe - Lionel Sausin 2010-10-25 10:52:22 +02:00
parent e3e8be4b01
commit 5905b3ecf0
1 changed files with 3 additions and 3 deletions

View File

@ -4151,9 +4151,9 @@ class orm(orm_template):
old_record, new_record = self.read(cr, uid, [old_id, new_id], [field_name], context=context)
# here we rely on the order of the ids to match the translations
# as foreseen in copy_data()
old_childs = sorted(old_record[field_name])
new_childs = sorted(new_record[field_name])
for (old_child, new_child) in zip(old_childs, new_childs):
old_children = sorted(old_record[field_name])
new_children = sorted(new_record[field_name])
for (old_child, new_child) in zip(old_children, new_children):
# recursive copy of translations here
target_obj.copy_translations(cr, uid, old_child, new_child, context=context)
# and for translatable fields we keep them for copy