Merge pull request #745 from expsa/membership_task

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

View File

@ -186,34 +186,16 @@
</xpath>
<xpath expr="//field[@name='title']" position="replace"></xpath>
<xpath expr="//div/h1" position="replace">
<h1 class="o_addressformat">
<div attrs="{'invisible': [('company_type', '!=', 'company')]}" class="o_address_row"
style="display: flex; justify-content: space-between;"> <!-- Title Field on the Right -->
<div t-attf-style="display: flex; justify-content: space-between; #{'flex-direction: row;' if company_type == 'individual' else 'flex-direction: column;'}">
<!-- 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}"
attrs="{'invisible': [('company_type', '=', 'company')]}"/>
</div>
<!-- Name Field on the Left -->
<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)],
'invisible': [('is_company','=', False)]}"/>
<field name="name" default_focus="1" placeholder="e.g. Brandon Freeman"
attrs="{'required': [('type', '=', 'contact'), ('is_company', '=', False)],
'invisible': [('is_company','=', True)]}"/>
</div>
</div>
<div attrs="{'invisible': [('company_type', '=', 'company')]}" class="o_address_row"> <!-- Title Field on the Right -->
<div attrs="{'invisible': [('company_type', '=', 'company')]}">
<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">
<field name="name" default_focus="1" placeholder="e.g. Lumber Inc"
@ -225,9 +207,9 @@
</div>
</div>
</h1>
</xpath>
</xpath>
<xpath expr="//page" position="after">
<page groups="dev_membership.group_membership_user" name="memebership" string='Memebership'>
<group>