|
@ -145,16 +145,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//div[@class='o_address_format']" position="replace"> |
|
|
<xpath expr="//div[@class='o_address_format']" position="replace"> |
|
|
<field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="street2" placeholder="Street 2..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="city" placeholder="City" class="o_address_city" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/> |
|
|
|
|
|
|
|
|
<field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="street2" placeholder="Street 2..." class="o_address_street" attrs="{'readonly': [('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly': [('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="city" placeholder="City" class="o_address_city" attrs="{'readonly': [('parent_id', '!=', False)]}"/> |
|
|
|
|
|
<field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" attrs="{'readonly': [('parent_id', '!=', False)]}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/> |
|
|
|
|
|
|
|
|
<field name="country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
|
|
|
<field name="country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}" attrs="{'readonly': [('parent_id', '!=', False)]}"/> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='type']" position="replace"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//span[@name='address_name']" position="replace"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='zip']" position="before"> |
|
|
<xpath expr="//field[@name='zip']" position="before"> |
|
|
<field name="locality" string="Locality" placeholder="locality"/> |
|
|
<field name="locality" string="Locality" placeholder="locality"/> |
|
@ -178,42 +187,46 @@ |
|
|
</page> |
|
|
</page> |
|
|
</xpath> |
|
|
</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> |
|
|
|
|
|
</group> |
|
|
|
|
|
|
|
|
<xpath expr="//button[@name='%(donation.partner_donation_action)d']" position="replace"> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="/form/sheet/div/div" position="replace"> |
|
|
|
|
|
|
|
|
<xpath expr="//button[@name='%(donation_base.partner_tax_receipt_action)d']" position="replace"> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//button[@name='294']" position="replace"> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='type']" position="before"> |
|
|
|
|
|
<field name="npai_count"/> |
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//button[@name='action_view_partner_invoices']" position="replace"> |
|
|
|
|
|
|
|
|
<xpath expr="//div[@name='button_box']" position="inside"> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//button[@name='action_event_view']" position="replace"> |
|
|
|
|
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//div[@name='button_box']" position="inside"> |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
class="oe_stat_button" |
|
|
|
|
|
type="action" |
|
|
|
|
|
name="%(donation.partner_donation_action)d" |
|
|
|
|
|
attrs="{'invisible': [('donor_rank', '=', 0)]}" |
|
|
|
|
|
icon="fa-heart-o"> |
|
|
|
|
|
<field string="Donations" name="donation_count" widget="statinfo" /> |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
class="oe_stat_button" |
|
|
|
|
|
type="action" |
|
|
|
|
|
name="%(donation_base.partner_tax_receipt_action)d" |
|
|
|
|
|
attrs="{'invisible': [('parent_id', '!=', False)]}" |
|
|
|
|
|
icon="fa-file-text" |
|
|
|
|
|
> |
|
|
|
|
|
<field |
|
|
|
|
|
string="Tax Receipts" |
|
|
|
|
|
name="tax_receipt_count" |
|
|
|
|
|
widget="statinfo" |
|
|
|
|
|
/> |
|
|
|
|
|
</button> |
|
|
<button class="oe_stat_button" type="action" |
|
|
<button class="oe_stat_button" type="action" |
|
|
name="%(act_partner_recurring_donation)d" |
|
|
name="%(act_partner_recurring_donation)d" |
|
|
|
|
|
|
|
@ -260,6 +273,59 @@ |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//page[@name='sales_purchases']" position="after"> |
|
|
|
|
|
<page name="marketing_operation" string="Marketing operation"> |
|
|
|
|
|
<group col="12"> |
|
|
|
|
|
<group colspan="12"> |
|
|
|
|
|
|
|
|
|
|
|
<field name="operation_ids"> |
|
|
|
|
|
<tree> |
|
|
|
|
|
<field name="name"/> |
|
|
|
|
|
<field name="chanel"/> |
|
|
|
|
|
<field name="exported_date"/> |
|
|
|
|
|
</tree> |
|
|
|
|
|
</field> |
|
|
|
|
|
|
|
|
|
|
|
</group> |
|
|
|
|
|
</group> |
|
|
|
|
|
</page> |
|
|
|
|
|
</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> |
|
|
|
|
|
</group> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="/form/sheet/div/div" position="replace"> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='type']" position="before"> |
|
|
|
|
|
<field name="npai_count"/> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='state_id']" position="attributes"> |
|
|
<xpath expr="//field[@name='state_id']" position="attributes"> |
|
|
<attribute name="invisible">True</attribute> |
|
|
<attribute name="invisible">True</attribute> |
|
|
</xpath> |
|
|
</xpath> |
|
|