[FIX] mass_mailing: remove extra domain in view

Remove the extra mailing_domain in the form view and
keeping the one on a separate line.

This extra domain field was introduced by the improvement
task on the mailing form view design.
For more info see: e542cca69e

task-3562293

closes odoo/odoo#139224

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Jérémy Hennecart (jeh)
2023-10-25 11:37:32 +00:00
parent 4e7d383692
commit b3ffdf02bb
@@ -245,19 +245,15 @@
readonly="state in ('sending', 'done')"/>
</div>
<field name="mailing_filter_count" invisible="1"/>
<div name="mass_mailing_domain" invisible="mailing_model_name == 'mailing.list'"
class="col-md-6 d-block">
<field name="mailing_domain" widget="domain" options="{'model': 'mailing_model_real'}" readonly="state in ('sending', 'done')"/>
</div>
</div>
<field name="mailing_model_name" invisible="1"/>
<field name="mailing_on_mailing_list" invisible="1"/>
<field name="mailing_model_real" invisible="1"/>
<div invisible="mailing_on_mailing_list">
<field name="mailing_domain" widget="domain" options="{'model': 'mailing_model_real', 'foldable': true}"
<field name="mailing_domain" widget="domain"
options="{'model': 'mailing_model_real', 'foldable': true}"
invisible="mailing_on_mailing_list"
readonly="state in ('sending', 'done')"/>
</div>
</div>
</group>
<notebook>
@@ -483,9 +479,6 @@
</div>
</page>
</xpath>
<xpath expr="//div[@name='mass_mailing_domain']" position="attributes">
<attribute name="class">col-md-7</attribute>
</xpath>
</field>
</record>