[FIX] keep t as template name for templates

bzr revid: fp@openerp.com-20130810203756-votwz009a3m3bf2b
This commit is contained in:
Fabien Pinckaers 2013-08-10 22:37:56 +02:00
parent 97760d0af3
commit e59fe5ff90
1 changed files with 3 additions and 1 deletions

View File

@ -848,7 +848,9 @@ form: module.record_id""" % (xml_id,)
# set the full template name for qweb <module>.<id>
if (not el.get('inherit_id', False)) and (not el.get('inherit_option_id', False)):
el.attrib['t-name'] = '%s.%s' % (module, tpl_id)
el.tag = 'data'
el.tag = 't'
else:
el.tag = 'data'
el.attrib.pop('id', None)
record = etree.Element('record')