Revert "[FIX] ir.qweb: can't edit t-field content if modified by inherit xpath"

This reverts commit 5ab43773cb.
This commit is not needed anymore since d3557de746.
This commit is contained in:
Christophe Simonis
2016-04-01 18:32:32 +02:00
parent 94af66fe8b
commit de11d8415a
-7
View File
@@ -264,13 +264,6 @@ class QWeb(orm.AbstractModel):
else:
_logger.warning("@t-debug in template '%s' is only available in --dev mode" % qwebcontext['__template__'])
# remove branding attributes from inherit
if element.attrib.get('data-oe-id') and [key for key in element.attrib.keys() if key.startswith("t-")]:
element.attrib.pop("data-oe-id", False)
element.attrib.pop("data-oe-xpath", False)
element.attrib.pop("data-oe-model", False)
element.attrib.pop("data-oe-field", False)
for (attribute_name, attribute_value) in element.attrib.iteritems():
attribute_name = unicode(attribute_name)
if attribute_name == "groups":