Does not work if default_code contains a comma, please retrieve xmlid_code from ir.model.data only in sync context.
In update_existing_translations, could you test this to prevent the iteration on all fields ?
trans_ids = trans_obj.search(cr, uid, [ ('res_id', '=', 0), ('xml_id', '=', xmlid), ('type', '=', 'model'), ('name', '=like', '%s,%%' % (model,)), ], context=context)
(diff not generated by launchpad ...)
Does not work if default_code contains a comma, please retrieve xmlid_code from ir.model.data only in sync context.
In update_ existing_ translations, could you test this to prevent the iteration on all fields ? search( cr, uid, [
('res_id' , '=', 0),
('xml_id' , '=', xmlid),
('type' , '=', 'model'),
('name' , '=like', '%s,%%' % (model,)),
], context=context)
trans_ids = trans_obj.