-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_demande_achat_invest_view.xml
187 lines (178 loc) · 9.16 KB
/
is_demande_achat_invest_view.xml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="is_demande_achat_invest_type_seq" model="ir.sequence.type">
<field name="name">Demande d'achat Investissement</field>
<field name="code">is.demande.achat.invest</field>
</record>
<record id="is_demande_achat_invest_seq" model="ir.sequence">
<field name="name">Demande d'achat Investissement</field>
<field name="code">is.demande.achat.invest</field>
<field name="prefix">DAI-</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>
<record model="ir.ui.view" id="is_demande_achat_invest_form_view">
<field name="name">is_demande_achat_invest_form_view</field>
<field name="model">is.demande.achat.invest</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Form">
<header>
<field name="vers_brouillon_vsb" invisible="1"/>
<button
name="vers_brouillon_action"
string="Vers brouillon"
attrs="{'invisible': [('vers_brouillon_vsb', '!=', True)]}"
type="object"
confirm="Voulez-vous vraiment revenir à l'état brouillon ?"
/>
<field name="vers_validation_rsp_vsb" invisible="1"/>
<button
name="vers_validation_rsp_action"
string="Vers validation responsable"
attrs="{'invisible': [('vers_validation_rsp_vsb', '!=', True)]}"
class="oe_highlight" type="object"
/>
<field name="vers_validation_direction_vsb" invisible="1"/>
<button
name="vers_validation_direction_action"
string="Vers validation direction"
attrs="{'invisible': [('vers_validation_direction_vsb', '!=', True)]}"
class="oe_highlight" type="object"
/>
<field name="vers_transmis_achat_vsb" invisible="1"/>
<button
name="vers_transmis_achat_action"
string="Vers transmis achat"
attrs="{'invisible': [('vers_transmis_achat_vsb', '!=', True)]}"
class="oe_highlight" type="object"
/>
<field name="vers_solde_vsb" invisible="1"/>
<button
name="vers_solde_action"
string="Générer la commande et solder cette DA"
attrs="{'invisible': [('vers_solde_vsb', '!=', True)]}"
class="oe_highlight" type="object"
/>
<field name="vers_annule_vsb" invisible="1"/>
<button
name="vers_annule_action"
string="Vers annulé"
attrs="{'invisible': [('vers_annule_vsb', '!=', True)]}"
type="object"
/>
<field name="state" widget="statusbar"/>
</header>
<sheet class="oe_form_sheet_width_wider">
<group>
<group string="Identification">
<field name="name"/>
<field name="createur_id"/>
<field name="date_creation"/>
<field name="chef_service_id"/>
<field name="direction_id"/>
<field name="acheteur_id"/>
<field name="num_devis"/>
<field name="date_devis"/>
</group>
<group string="Adresse de destinataire">
<field
name="fournisseur_id"
on_change="fournisseur_id_on_change(fournisseur_id)"
/>
<field name="pricelist_id"/>
<field name="fournisseur_autre"/>
<field name="delai_livraison"/>
<field name="lieu_livraison_id"/>
<field name="is_incoterm"/>
<field name="is_lieu"/>
<field name="commentaire"/>
</group>
</group>
<group>
<field name="line_ids" nolabel="1" >
<tree editable="bottom">
<field name="sequence" />
<field
name="product_id"
on_change="product_id_on_change(parent,product_id,quantite)"
widget="many2one_clickable"
/>
<field name="designation1" />
<field name="designation2" />
<field name="uom_id" />
<field
name="quantite"
on_change="product_id_on_change(parent,product_id,quantite)"
/>
<field name="prix" />
<field name="montant" sum="Total" />
<field name="num_chantier" />
</tree>
</field>
</group>
<group>
<field name="order_id"/>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record model="ir.ui.view" id="is_demande_achat_invest_tree_view">
<field name="name">is_demande_achat_invest_tree_view</field>
<field name="model">is.demande.achat.invest</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree colors="gray:state=='solde';gray:state=='annule';red:state=='transmis_achat'">
<field name="name"/>
<field name="createur_id"/>
<field name="date_creation"/>
<field name="chef_service_id"/>
<field name="acheteur_id"/>
<field name="fournisseur_id" widget="many2one_clickable"/>
<field name="montant_total" sum="Total"/>
<field name="delai_livraison"/>
<field name="lieu_livraison_id"/>
<field name="num_devis"/>
<field name="date_devis"/>
<field name="commentaire"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="is_demande_achat_invest_search_view" >
<field name="name">is_demande_achat_invest_search_view</field>
<field name="model">is.demande.achat.invest</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="createur_id"/>
<field name="chef_service_id"/>
<field name="acheteur_id"/>
<field name="fournisseur_id"/>
<field name="lieu_livraison_id"/>
<field name="is_incoterm"/>
<field name="is_lieu"/>
<field name="num_devis"/>
<field name="state"/>
<group string="Regrouper par">
<filter string="Fournisseur" context="{'group_by': 'fournisseur_id'}"/>
</group>
</search>
</field>
</record>
<record model="ir.actions.act_window" id="is_demande_achat_invest_action">
<field name="name">Demande d'achat Investissement</field>
<field name="res_model">is.demande.achat.invest</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{}
</field>
</record>
</data>
</openerp>