base_partner_one2many_phone: email field on res.partner is now really invisible in form view (it was replaced by the mail module)

This commit is contained in:
Alexis de Lattre
2021-02-04 12:34:01 +01:00
parent 034c89b399
commit 5c06d79b69

View File

@@ -72,7 +72,9 @@
<record id="view_partner_form" model="ir.ui.view">
<field name="name">add.phone_ids.on.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="inherit_id" ref="mail.res_partner_view_form_inherit_mail"/>
<!-- This module depends on contacts which depends on mail
and the mail module replaces the email field -->
<field name="arch" type="xml">
<field name="phone" position="after">
<field name="phone_ids" nolabel="1" colspan="2"/>
@@ -83,9 +85,12 @@
<field name="mobile" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="email" position="attributes">
<label for="email" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</label>
<xpath expr="//field[@name='email']/.." position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<!-- I can't display phone_ids in the Contacts
because there is a very strange thing in the web client: if
you have a res.partner.phone on one of the fields,