[FIX] priority of templates are now working

bzr revid: fp@openerp.com-20131117072335-chwjkpcj8hv431z3
This commit is contained in:
Fabien Pinckaers 2013-11-17 08:23:35 +01:00
parent 8e78b40e6a
commit 0eb2bed2ca
1 changed files with 2 additions and 1 deletions

View File

@ -869,7 +869,7 @@ form: module.record_id""" % (xml_id,)
'id': tpl_id,
'model': 'ir.ui.view',
}
for att in ['forcecreate', 'context', 'priority']:
for att in ['forcecreate', 'context']:
if att in el.keys():
record_attrs[att] = el.attrib.pop(att)
@ -879,6 +879,7 @@ form: module.record_id""" % (xml_id,)
record = etree.Element('record', attrib=record_attrs)
record.append(Field(name, name='name'))
record.append(Field("qweb", name='type'))
record.append(Field(el.get('priority', "16"), name='priority'))
record.append(Field(el, name="arch", type="xml"))
for field_name in ('inherit_id','inherit_option_id'):
value = el.attrib.pop(field_name, None)