49a347af791d80c4c4b35c65940a7b091aefdd21
[burette/lhc.git] / view / membership.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3 <data>
4 <record id="view_membership_partner_form" model="ir.ui.view">
5 <field name="name">res.partner.form</field>
6 <field name="model">res.partner</field>
7 <field name="inherit_id" ref="membership.view_partner_form"/>
8 <field name="arch" type="xml">
9 <xpath expr="//button[@name='%(membership.action_membership_invoice_view)d']" position="attributes">
10 <attribute name="invisible">1</attribute>
11 </xpath>
12 <xpath expr="//page[@string='Membership']/group/group/div" position="after">
13 <field name="kit_sent" attrs="{'invisible': [('membership_state','not in', ('old', 'waiting', 'invoiced', 'free', 'paid'))]}"/>
14 <field name="bikecoop_activity_start" attrs="{'invisible': [('is_company','=', False)]}" />
15 <field name="bikecoop_activity_stop" attrs="{'invisible': [('is_company','=', False)]}"/>
16 <field name="rna" placeholder="W123456789" attrs="{'invisible': [('is_company','=', False)]}"/>
17 <field name="siren" placeholder="123456789" attrs="{'invisible': [('is_company','=', False)]}"/>
18 </xpath>
19 </field>
20 </record>
21 <record id="view_remembership_partner_form" model="ir.ui.view">
22 <field name="name">res.partner.form</field>
23 <field name="model">res.partner</field>
24 <field name="inherit_id" ref="remembership.view_remembership_partner_form"/>
25 <field name="arch" type="xml">
26 <field name="member_ident" position="replace"/>
27 </field>
28 </record>
29 <record id="view_members_tree" model="ir.ui.view">
30 <field name="name">res.partner.tree</field>
31 <field name="model">res.partner</field>
32 <field name="inherit_id" ref="remembership.view_remembership_members_tree"/>
33 <field name="arch" type="xml">
34 <field name="member_ident" position="replace"/>
35 </field>
36 </record>
37 <record id="view_res_partner_filter" model="ir.ui.view">
38 <field name="name">res.partner.select</field>
39 <field name="model">res.partner</field>
40 <field name="inherit_id" ref="membership.view_res_partner_member_filter"/>
41 <field name="arch" type="xml">
42 <xpath expr="//filter[@name='all_members']" position="after">
43 <filter icon="terp-personal" name="all_members_companies" domain="[('membership_state', 'in', ['invoiced','paid','free']),('is_company', '=', True)]" string="All Companies Members" help="Invoiced/Paid/Free and Companies"/>
44 <filter icon="terp-personal" name="all_members_individual" domain="[('membership_state', 'in', ['invoiced','paid','free']),('is_company', '=', False)]" string="All Individual Members" help="Invoiced/Paid/Free and Individuals"/>
45 </xpath>
46 <xpath expr="//group[@string='Group By...']" position="inside">
47 <filter string="County" context="{'group_by': 'county_code'}" groups="lhc.group_employee_lhc,base.group_no_one"/>
48 </xpath>
49 <xpath expr="//search" position="inside">
50 <field name="county_code"/>
51 <field name="city"/>
52 </xpath>
53 </field>
54 </record>
55 </data>
56 </openerp>