[FIX] typo

bzr revid: fp@tinyerp.com-20130810133924-462pnkxctqnim36j
This commit is contained in:
Fabien Pinckaers 2013-08-10 15:39:24 +02:00
parent 0adaae13fb
commit ddd75c0b23
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,7 @@ form: module.record_id""" % (xml_id,)
record.append(etree.fromstring('<field name="type">qweb</field>'))
record.append(etree.fromstring('<field name="arch" type="xml"/>'))
record[-1].append(el)
for field in ('inherit_id','inherit_option_id'):
for key in ('inherit_id','inherit_option_id'):
if el.get(key, False):
record.append(etree.fromstring('<field name="%s" ref="%s"/>' % (key, el.get('key'))))
el.attrib.pop(key, None)