[ADD] t-ignore branding opt-out

bzr revid: fme@openerp.com-20130731123603-y7dmh6rxr2lq9bcw
This commit is contained in:
Fabien Meghazi 2013-07-31 14:36:03 +02:00
parent ad6efa7735
commit a17606df0f
1 changed files with 3 additions and 0 deletions

View File

@ -715,6 +715,9 @@ class view(osv.osv):
return r['arch']
def distribute_branding(self, e, branding=None, xpath=None, count=None):
if e.attrib.get('t-ignore'):
# TODO: find a better name and check if we have a string to boolean helper
return
branding_copy = ['data-oe-model','data-oe-id','data-oe-field','data-oe-xpath']
branding_dist = {}
xpath = "%s/%s[%s]" % (xpath or '', e.tag, (count and count.get(e.tag)) or 1)