summaryrefslogtreecommitdiff
path: root/odoo/tools/convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/convert.py')
-rw-r--r--odoo/tools/convert.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py
index 089210d6f99..3c3eba3bec6 100644
--- a/odoo/tools/convert.py
+++ b/odoo/tools/convert.py
@@ -746,7 +746,8 @@ form: module.record_id""" % (xml_id,)
record.append(Field(name, name='name'))
record.append(Field(full_tpl_id, name='key'))
record.append(Field("qweb", name='type'))
- record.append(Field(el.get('priority', "16"), name='priority'))
+ if 'priority' in el.attrib:
+ record.append(Field(el.get('priority'), name='priority'))
if 'inherit_id' in el.attrib:
record.append(Field(name='inherit_id', ref=el.get('inherit_id')))
if 'website_id' in el.attrib: