|
|
@ -75,7 +75,7 @@ |
|
|
|
<field name="name">Recurring_donation</field> |
|
|
|
<field name="res_model">donation.donation</field> |
|
|
|
<field name="view_mode">tree,form,graph</field> |
|
|
|
<field name="context">{'default_recurring_template': 'active', 'recurring_view': True,'partner_id': active_id}</field> |
|
|
|
<field name="context">{'default_recurring_template': 'active', 'recurring_view': True,'search_default_partner_id': active_id}</field> |
|
|
|
<field name="domain">[('recurring_template', '!=', False)]</field> |
|
|
|
</record> |
|
|
|
|
|
|
@ -112,6 +112,19 @@ |
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="view_res_partner_filter" model="ir.ui.view"> |
|
|
|
<field name="name">opendons.res.partner.filter</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//field[@name='name']" position="before"> |
|
|
|
<field name="donor_id" filter_domain="[('donor_id', 'ilike', self)]"/> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="view_partner_form" model="ir.ui.view"> |
|
|
|
<field name="name">opendons.res.partner.form</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
@ -144,8 +157,8 @@ |
|
|
|
<field name="tax_street" placeholder="Street..." class="o_address_street" /> |
|
|
|
<field name="tax_street2" placeholder="Street 2..." class="o_address_street"/> |
|
|
|
<field name="tax_locality" placeholder="Locality" class="o_address_street"/> |
|
|
|
<field name="tax_city" placeholder="City" class="o_address_city" /> |
|
|
|
<field name="tax_zip" placeholder="ZIP" class="o_address_zip"/> |
|
|
|
<field name="tax_city" placeholder="City" class="o_address_city" /> |
|
|
|
<field name="tax_country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}"/> |
|
|
|
</div> |
|
|
|
</group> |
|
|
@ -158,10 +171,10 @@ |
|
|
|
<group> |
|
|
|
|
|
|
|
<field name="donor_id"/> |
|
|
|
<field name="title" options="{"no_open": True}" placeholder="e.g. Mister" attrs="{'invisible': [('is_company', '=', True)]}"/> |
|
|
|
<field id="individual" class="o_text_overflow" name="name" default_focus="1" placeholder="e.g. Brandom Freeman" attrs="{'required' : [('type', '=', 'contact'), ('is_company', '=', False)], 'invisible': [('is_company','=', True)]}"/> |
|
|
|
<field name="firstname" attrs="{'invisible':[('is_company','=',True)]}"/> |
|
|
|
<field id="company" class="o_text_overflow" name="name" default_focus="1" placeholder="e.g. Lumber Inc" attrs="{'required' : [('type', '=', 'contact'),('is_company', '=', True)], 'invisible': [('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 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"/> --> |
|
|
@ -209,7 +222,7 @@ |
|
|
|
<span>Bool Qualifiers</span> |
|
|
|
</button> |
|
|
|
|
|
|
|
<button class="oe_stat_button" type="action" |
|
|
|
<!-- <button class="oe_stat_button" type="action" |
|
|
|
name="%(act_partner_email)d" |
|
|
|
|
|
|
|
icon="fa-envelope"> |
|
|
@ -220,7 +233,7 @@ |
|
|
|
|
|
|
|
icon="fa-phone"> |
|
|
|
<field string="Phone" name="phone_count" widget="statinfo"/> |
|
|
|
</button> |
|
|
|
</button> --> |
|
|
|
<button class="oe_stat_button" type="action" |
|
|
|
name="%(act_partner_relationship)d" |
|
|
|
|
|
|
|