-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_demande_achat_serie_view.xml
164 lines (161 loc) · 8.08 KB
/
is_demande_achat_serie_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Sequence is.demande.achat.serie -->
<record id="is_demande_achat_serie_type_seq" model="ir.sequence.type">
<field name="name">Demande d'achat série</field>
<field name="code">is.demande.achat.serie</field>
</record>
<record id="is_demande_achat_serie_seq" model="ir.sequence">
<field name="name">Demande d'achat série</field>
<field name="code">is.demande.achat.serie</field>
<field name="prefix">DAS-</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>
<!-- is.demande.achat.serie -->
<record model="ir.ui.view" id="is_demande_achat_serie_form_view">
<field name="name">is_demande_achat_serie_form_view</field>
<field name="model">is.demande.achat.serie</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_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="acheteur_id"/>
</group>
<group string="Adresse de destinataire">
<field
name="fournisseur_id"
on_change="fournisseur_id_on_change(fournisseur_id)"
/>
<field name="pricelist_id"/>
<field name="is_type_cde_fournisseur"/>
<field name="delai_livraison"/>
<field name="lieu_livraison_id"/>
<field name="is_incoterm"/>
<field name="is_lieu"/>
<field name="motif"/>
<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="uom_id" />
<field
name="quantite"
on_change="product_id_on_change(parent,product_id,quantite)"
/>
<field name="prix" />
<field name="montant" sum="Total" />
</tree>
</field>
</group>
<group>
<field name="montant_total"/>
<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_serie_tree_view">
<field name="name">is_demande_achat_serie_tree_view</field>
<field name="model">is.demande.achat.serie</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="acheteur_id"/>
<field name="fournisseur_id" widget="many2one_clickable"/>
<field name="product_id" widget="many2one_clickable"/>
<field name="montant_total" sum="Total"/>
<field name="delai_livraison"/>
<field name="lieu_livraison_id"/>
<field name="motif"/>
<field name="commentaire"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="is_demande_achat_serie_search_view" >
<field name="name">is_demande_achat_serie_search_view</field>
<field name="model">is.demande.achat.serie</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="createur_id"/>
<field name="acheteur_id"/>
<field name="fournisseur_id"/>
<field name="is_type_cde_fournisseur"/>
<field name="product_id"/>
<field name="lieu_livraison_id"/>
<field name="is_incoterm"/>
<field name="is_lieu"/>
<field name="motif"/>
<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_serie_action">
<field name="name">Demande d'achat série</field>
<field name="res_model">is.demande.achat.serie</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{}
</field>
</record>
</data>
</openerp>