mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-23 12:51:46 +00:00
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<flectra>
|
|
<record id="view_users_form" model="ir.ui.view">
|
|
<field name="name">Add firstname and surnames</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form" />
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<xpath expr="//field[@name='name']" position="attributes">
|
|
<attribute name="readonly">True</attribute>
|
|
<attribute name="required">False</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='email']" position="after">
|
|
<group>
|
|
<field
|
|
name="lastname"
|
|
attrs="{'required': [('firstname', '=', False)]}"
|
|
/>
|
|
<field
|
|
name="firstname"
|
|
attrs="{'required': [('lastname', '=', False)]}"
|
|
/>
|
|
</group>
|
|
</xpath>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
</flectra>
|