|
|
@ -248,18 +248,6 @@ |
|
|
|
<span>Bool Qualifiers</span> |
|
|
|
</button> |
|
|
|
|
|
|
|
<!-- <button class="oe_stat_button" type="action" |
|
|
|
name="%(act_partner_email)d" |
|
|
|
|
|
|
|
icon="fa-envelope"> |
|
|
|
<field string="Email" name="email_count" widget="statinfo"/> |
|
|
|
</button> |
|
|
|
<button class="oe_stat_button" type="action" |
|
|
|
name="%(act_partner_phone)d" |
|
|
|
|
|
|
|
icon="fa-phone"> |
|
|
|
<field string="Phone" name="phone_count" widget="statinfo"/> |
|
|
|
</button> --> |
|
|
|
<button class="oe_stat_button" type="action" |
|
|
|
name="%(act_partner_relationship)d" |
|
|
|
|
|
|
@ -293,32 +281,29 @@ |
|
|
|
</xpath> |
|
|
|
|
|
|
|
<xpath expr="/form/sheet/div/h1" position="replace"> |
|
|
|
<group> |
|
|
|
<group> |
|
|
|
|
|
|
|
<field name="donor_id"/> |
|
|
|
<field name="title" options="{"no_open": True}" placeholder="" attrs="{'invisible': [('is_company', '=', True)],'required' : [('is_company', '=', False)]}"/> |
|
|
|
<field id="individual" class="o_text_overflow" name="name" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', False)], 'invisible': [('is_company','=', True)]}"/> |
|
|
|
<field name="firstname" attrs="{'invisible':[('is_company','=',True)],'required' : [('is_company', '=', False)]}"/> |
|
|
|
<field id="company" class="o_text_overflow" name="name" string="Raison sociale" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <field name="source"/> --> |
|
|
|
<!-- <field name="company_id"/> --> |
|
|
|
|
|
|
|
|
|
|
|
<field name="parent_id" string="Company Name" |
|
|
|
widget="res_partner_many2one" |
|
|
|
placeholder="Company Name..." |
|
|
|
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" |
|
|
|
attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> |
|
|
|
<field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/> |
|
|
|
<button name="create_company" icon="fa-plus-square" string="Create company" |
|
|
|
type="object" class="oe_edit_only btn-link" |
|
|
|
attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> |
|
|
|
<group col="4"> |
|
|
|
<group col="2"> |
|
|
|
|
|
|
|
<field name="donor_id"/> |
|
|
|
<field name="title" options="{"no_open": True}" placeholder="" attrs="{'invisible': [('is_company', '=', True)],'required' : [('is_company', '=', False)]}"/> |
|
|
|
<field id="individual" class="o_text_overflow" name="name" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', False)], 'invisible': [('is_company','=', True)]}"/> |
|
|
|
<field name="firstname" attrs="{'invisible':[('is_company','=',True)],'required' : [('is_company', '=', False)]}"/> |
|
|
|
<field id="company" class="o_text_overflow" name="name" string="Raison sociale" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/> |
|
|
|
|
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="parent_id" string="Company Name" |
|
|
|
widget="res_partner_many2one" |
|
|
|
placeholder="Company Name..." |
|
|
|
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" |
|
|
|
attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> |
|
|
|
<field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/> |
|
|
|
<button name="create_company" icon="fa-plus-square" string="Create company" |
|
|
|
type="object" class="oe_edit_only btn-link" |
|
|
|
attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> |
|
|
|
|
|
|
|
</group> |
|
|
|
<group col="2"> |
|
|
|
</group> |
|
|
|
<group col="2"> |
|
|
|
<field name="first_donation_product_id"/> |
|
|
|
<field name="first_donation_date"/> |
|
|
|
<field name="max_amount_donation"/> |
|
|
|