|
@ -266,19 +266,20 @@ |
|
|
|
|
|
|
|
|
<field name="donor_id"/> |
|
|
<field name="donor_id"/> |
|
|
<field name="title" options="{"no_open": True}" placeholder="" attrs="{'invisible': [('is_company', '=', True)],'required' : [('is_company', '=', False)]}"/> |
|
|
<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 id="individual" 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 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 id="company" name="name" string="Raison sociale" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/> |
|
|
|
|
|
|
|
|
<field name="parent_id" string="Company Name" |
|
|
<field name="parent_id" string="Company Name" |
|
|
widget="res_partner_many2one" |
|
|
widget="res_partner_many2one" |
|
|
placeholder="Company Name..." |
|
|
placeholder="Company Name..." |
|
|
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" |
|
|
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', '!=', '')]}"/> |
|
|
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" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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" |
|
|
type="object" class="oe_edit_only btn-link" |
|
|
attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> |
|
|
|
|
|
|
|
|
attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> --> |
|
|
|
|
|
|
|
|
</group> |
|
|
</group> |
|
|
|
|
|
|
|
|