summaryrefslogtreecommitdiff
path: root/odoo/tools/convert.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-09-16 11:03:50 +0200
committerChristophe Simonis <chs@odoo.com>2016-09-16 11:03:50 +0200
commitf4fc3985b6b8857e573b8aea35986cf1dfd552de (patch)
tree9d44d633b6d71472fdfb4d491d1e89a8a506dc31 /odoo/tools/convert.py
parentd4b878af534d8770794664f560ba2268d4fa373d (diff)
parent10cde43fd4c0f85e86c21a15dcd3f39e10c87d96 (diff)
[MERGE] forward port branch saas-12 up to 10cde43
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: