1
<?xml version="1.0" encoding="UTF-8"?>
7
<record id="hq_export_ocg_view" model="ir.ui.view">
8
<field name="name">Export to HQ system (OCG)</field>
9
<field name="model">wizard.hq.report.ocg</field>
10
<field name="type">form</field>
11
<field name="arch" type="xml">
12
<form string="Export to HQ system">
13
<field name="instance_id" domain="[('level', '=', 'coordo')]"/>
14
<field name="fiscalyear_id"/>
15
<field name="period_id" domain="[('fiscalyear_id', '=', fiscalyear_id), ('state', '<>', 'created')]"/>
17
<button icon="terp-camera_test" string="Export" name="button_create_report" type="object" default_focus="1"/>
22
<record id="action_hq_export_ocg" model="ir.actions.act_window">
23
<field name="name">Export to HQ system (OCG)</field>
24
<field name="type">ir.actions.act_window</field>
25
<field name="res_model">wizard.hq.report.ocg</field>
26
<field name="view_type">form</field>
27
<field name="view_mode">form</field>
28
<field name="view_id" ref="hq_export_ocg_view"/>
29
<field name="target">new</field>
32
<menuitem parent="account.menu_finance_generic_reporting"
33
action="action_hq_export_ocg"
34
id="menu_action_hq_export_ocg" sequence="10"/>
38
<record id="hq_export_oca_view" model="ir.ui.view">
39
<field name="name">Export to HQ system (OCA)</field>
40
<field name="model">wizard.hq.report.oca</field>
41
<field name="type">form</field>
42
<field name="arch" type="xml">
43
<form string="Export to HQ system">
44
<field name="instance_id" domain="[('level', '=', 'coordo')]"/>
45
<field name="fiscalyear_id"/>
46
<field name="period_id" domain="[('fiscalyear_id', '=', fiscalyear_id), ('state', 'in', ['mission-closed', 'done'])]"/>
48
<button icon="terp-camera_test" string="Export" name="button_create_report" type="object" default_focus="1"/>
53
<record id="action_hq_export_oca" model="ir.actions.act_window">
54
<field name="name">Export to HQ system (OCA)</field>
55
<field name="type">ir.actions.act_window</field>
56
<field name="res_model">wizard.hq.report.oca</field>
57
<field name="view_type">form</field>
58
<field name="view_mode">form</field>
59
<field name="view_id" ref="hq_export_oca_view"/>
60
<field name="target">new</field>
63
<menuitem parent="account.menu_finance_generic_reporting"
64
action="action_hq_export_oca"
65
id="menu_action_hq_export_oca" sequence="20"/>
69
<record id="ocb_export_wizard" model="ir.ui.view">
70
<field name="name">Export to HQ system (OCB)</field>
71
<field name="model">ocb.export.wizard</field>
72
<field name="type">form</field>
73
<field name="arch" type="xml">
74
<form string="Export to HQ system">
75
<field name="instance_id" domain="[('level', '=', 'coordo')]"/>
76
<field name="fiscalyear_id"/>
77
<field name="period_id" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
78
<field name="selection"/>
79
<group colspan="6" col="4">
80
<label string="" colspan="2"/>
81
<button special="cancel" string="Cancel" colspan="1" icon="gtk-cancel"/>
82
<button icon="terp-camera_test" string="Export" name="button_export" type="object" default_focus="1" colspan="1"/>
88
<record id="action_hq_export_ocb" model="ir.actions.act_window">
89
<field name="name">Export to HQ system (OCB)</field>
90
<field name="type">ir.actions.act_window</field>
91
<field name="res_model">ocb.export.wizard</field>
92
<field name="view_type">form</field>
93
<field name="view_mode">form</field>
94
<field name="view_id" ref="ocb_export_wizard"/>
95
<field name="target">new</field>
98
<menuitem parent="account.menu_finance_generic_reporting"
99
action="action_hq_export_ocb"
100
id="menu_action_hq_export_ocb" sequence="30"/>
102
<!-- OCB matching export -->
104
<record id="ocb_matching_export_wizard" model="ir.ui.view">
105
<field name="name">OCB matching export</field>
106
<field name="model">ocb.matching.export.wizard</field>
107
<field name="type">form</field>
108
<field name="arch" type="xml">
109
<form string="OCB matching export">
110
<field name="instance_id" domain="[('level', '=', 'coordo')]"/>
111
<group colspan="6" col="4">
112
<label string="" colspan="2"/>
113
<button special="cancel" string="Cancel" colspan="1" icon="gtk-cancel"/>
114
<button icon="terp-camera_test" string="Export" name="button_export" type="object" default_focus="1" colspan="1"/>
120
<record id="action_hq_ocb_matching_export" model="ir.actions.act_window">
121
<field name="name">OCB matching export</field>
122
<field name="type">ir.actions.act_window</field>
123
<field name="res_model">ocb.matching.export.wizard</field>
124
<field name="view_type">form</field>
125
<field name="view_mode">form</field>
126
<field name="view_id" ref="ocb_matching_export_wizard"/>
127
<field name="target">new</field>
130
<menuitem parent="account.menu_finance_generic_reporting"
131
action="action_hq_ocb_matching_export"
132
id="menu_action_hq_ocb_matching_export" sequence="40"/>