Skip to content

Commit

Permalink
Revert "[FIX] ir.qweb: can't edit t-field content if modified by inhe…
Browse files Browse the repository at this point in the history
…rit xpath"

This reverts commit 5ab4377.
This commit is not needed anymore since d3557de.
  • Loading branch information
KangOl committed Apr 1, 2016
1 parent 94af66f commit de11d84
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions openerp/addons/base/ir/ir_qweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,6 @@ def render_node(self, element, qwebcontext, generated_attributes=''):
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":
Expand Down

0 comments on commit de11d84

Please sign in to comment.