[FIX] mass_mailing: do not inherit a view on a string attribute

A string attribute value can be translated,
and therefore the inherit broken if the term is indeed
translated.

This was the case for this term "Tracked link" in the Dutch
language, the "Tracked link" term of the inherited view has
been translated, and the inherit was therefore broken as
it couldn't find the given node in the base view due to the
fact this term was translated.

opw-683128
This commit is contained in:
Denis Ledoux
2016-07-14 12:25:02 +02:00
parent 46c3c721fc
commit 8d2d741db3
2 changed files with 1 additions and 6 deletions
@@ -1570,11 +1570,6 @@ msgstr ""
msgid "Total"
msgstr ""
#. module: mass_mailing
#: model:ir.ui.view,arch_db:mass_mailing.view_mail_mass_mailing_links_search
msgid "Tracked Link"
msgstr ""
#. module: mass_mailing
#: model:ir.ui.view,arch_db:mass_mailing.view_mail_mass_mailing_campaign_form
#: model:ir.ui.view,arch_db:mass_mailing.view_mail_mass_mailing_form
+1 -1
View File
@@ -363,7 +363,7 @@
<field name="model">link.tracker</field>
<field name="inherit_id" ref="link_tracker.view_link_tracker_filter"/>
<field name="arch" type="xml">
<search string="Tracked Link">
<search>
<field name="mass_mailing_id"/>
<field name="mass_mailing_campaign_id"/>
</search>