distribute branding take care of call and t

bzr revid: al@openerp.com-20130702160750-0yv4g6bcnh4v80rp
This commit is contained in:
Antony Lesuisse 2013-07-02 18:07:50 +02:00
parent d346320699
commit 2bac4d24c4
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ class view(osv.osv):
if e.attrib.get('data-oe-model'):
# if a branded tag containg branded tag distribute to the childs
child_text = "".join([etree.tostring(x, encoding='utf-8') for x in e])
if re.search('(data-oe-model=|t-esc=|t-raw=|t-field=)',child_text):
if re.search('(data-oe-model=|t-esc=|t-raw=|t-field=|t-call=)',child_text) or e.tag == "t":
for i in branding_copy:
if e.attrib.get(i):
branding_dist[i] = e.attrib.get(i)