1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8"?>
<!-- ********************************************************************** -->
<!-- See __openerp__.py file for Copyright and Licence Informations. -->
<!-- ********************************************************************** -->
<openerp>
<data>
<record id="action_add_template_registration" model="ir.actions.act_window">
<field name="name">Add Template Registration</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">add.template.registration.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="view_id" ref="view_add_template_registration_wizard_form"/>
</record>
<record id="view_res_partner_shift_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="groups_id" eval="[(4, ref('coop_shift.group_shift_manager'))]"/>
<field name="arch" type="xml">
<page name="sales_purchases" position="after">
<page name="shifts" string="Shifts">
<group name="squedleader">
<field name="is_squadleader"/>
<field name="template_ids"/>
</group>
<group name="button" groups="coop_shift.group_shift_manager">
<button name="%(coop_shift.action_add_template_registration)d" type="action" class="oe_highlight" icon="fa-cogs" string="Add Template Registration" id="add_template_registration"/>
</group>
</page>
</page>
<div name="button_box" position="inside">
<button name="%(coop_shift.act_shift_registration_from_partner)d"
type="action"
class="oe_stat_button oe_event_attendee_button"
icon="fa-calendar"
help="View partner Registrations"
groups="coop_shift.group_shift_user" id="view_partner_registrations">
<field name="upcoming_registration_count" widget="statinfo" string="Upc. Registr."/>
</button>
<button name="%(coop_shift.act_shift_leave_from_partner)d"
type="action"
class="oe_stat_button oe_event_attendee_button"
icon="fa-sign-out"
help="View partner Leaves"
groups="coop_shift.group_shift_see_leave" id="view_shift_leaves">
<field name="leave_qty" widget="statinfo" string="Leaves"/>
</button>
<button name="%(coop_shift.act_template_registration_line_from_partner)d"
type="action"
class="oe_stat_button oe_event_attendee_button"
icon="fa-calendar-plus-o"
help="View partner Template Registrations"
groups="coop_shift.group_shift_manager" id="view_partner_template_registrations">
<field name="active_tmpl_reg_line_count" widget="statinfo" string="Tmpl. Registr."/>
</button>
<button name="%(coop_shift.action_res_partner_point_counter_view_standard)d"
type="action"
class="oe_stat_button"
icon="fa-star-o"
help="View Partner Points Standard Counter"
groups="coop_shift.group_shift_manager" id="view_res_partner_point_counter_standard">
<field name="display_std_points" widget="statinfo" string="Standard Points"/>
</button>
<button name="%(coop_shift.action_res_partner_point_counter_view_ftop)d"
type="action"
class="oe_stat_button"
icon="fa-star-o"
help="View Partner Points FTOP Counter"
groups="coop_shift.group_shift_manager" id="view_res_partner_point_counter_ftop">
<field name="display_ftop_points" widget="statinfo" string="FTOP Points"/>
</button>
</div>
<xpath expr="//field[@name='child_ids']/form/sheet/field[@name='type']" position="after">
<label for="default_addess_for_shifts"
attrs="{'invisible':[('type','!=','other')]}"
groups="coop_shift.group_shift_see_default_setting_address">Use as default for Shifts</label>
<field name="default_addess_for_shifts"
attrs="{'invisible':[('type','!=','other')]}"
groups="coop_shift.group_shift_see_default_setting_address"/>
</xpath>
<field name="type" position="before">
<field name="default_addess_for_shifts"
attrs="{'invisible':['|',('parent_id','==',False),('type','!=','other')]}"
groups="coop_shift.group_shift_see_default_setting_address"/>
</field>
</field>
</record>
</data>
</openerp>