Merge pull request #741 from expsa/membership_task

Update partner_extended.xml
This commit is contained in:
zainab2097 2024-08-14 20:03:38 +03:00 committed by GitHub
commit 5df5f27147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 10 deletions

View File

@ -189,19 +189,21 @@
<xpath expr="//div/h1" position="replace">
<h1 class="o_addressformat">
<div class="o_address_row" style="display: flex; justify-content: space-between;"> <!-- Title Field on the Right -->
<div class="o_address_row"
style="display: flex; justify-content: space-between;"> <!-- Title Field on the Right -->
<div style="flex: 1;" class="o_address_state">
<field widget="selection" name="title" placeholder="Title" options="{'no_quick_create': True}"
<field widget="selection" name="title" placeholder="Title"
options="{'no_quick_create': True}"
attrs="{'invisible': [('company_type', '=', 'company')]}"/>
</div>
<!-- Name Field on the Left -->
<div style="flex: 1; text-align: left;" class="o_address_zip">
<div style="flex: 1; text-align: left;" class="o_address_zip">
<field name="name" default_focus="1" placeholder="e.g. Lumber Inc"
attrs="{'required': [('type', '=', 'contact'), ('is_company', '=', True)],
attrs="{'required': [('type', '=', 'contact'), ('is_company', '=', True)],
'invisible': [('is_company','=', False)]}"/>
<field name="name" default_focus="1" placeholder="e.g. Brandon Freeman"
attrs="{'required': [('type', '=', 'contact'), ('is_company', '=', False)],
attrs="{'required': [('type', '=', 'contact'), ('is_company', '=', False)],
'invisible': [('is_company','=', True)]}"/>
</div>
</div>
@ -209,7 +211,6 @@
</xpath>
<xpath expr="//page" position="after">
<page groups="dev_membership.group_membership_user" name="memebership" string='Memebership'>
<group>
@ -233,10 +234,12 @@
</xpath>
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="attrs">{'invisible':[('company_type','!=','company')]}"</attribute>
<attribute name="attrs">{'invisible':[('company_type','!=','company')]}</attribute>
</xpath>
<xpath expr="//field[@name='website']" position="attributes">
<attribute name="attrs">{'invisible':[('company_type','!=','company')]}"</attribute>
<xpath expr="//field[@name='website']" position="attributes">
<attribute name="attrs">{'invisible':[('company_type','!=','company')]}</attribute>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">