[FIX] mail: Make a correct xpath to insert opt-out on res.partner view

The current xpath in inserting the opt-out in the sub-kanban view for the child_ids.

The new xpath is inserting these two fields in the intended location.
This commit is contained in:
Yannick Tivisse
2018-06-07 17:47:17 +02:00
parent 60614d9961
commit 2a2a15e60f
+1 -1
View File
@@ -7,7 +7,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_id']" position="after">
<xpath expr="//page[@name='sales_purchases']//field[@name='user_id']" position="after">
<field name="opt_out" string="Mailing Opt-Out" groups="base.group_no_one"/>
<field name="message_bounce" groups="base.group_no_one"/>
</xpath>