-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathis_edi_cde_cli_view.xml
executable file
·152 lines (149 loc) · 7.68 KB
/
is_edi_cde_cli_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Lignes d'EDI -->
<record id="is_edi_cde_cli_line_form_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_line_form_view</field>
<field name="model">is.edi.cde.cli.line</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="ref_article_client" readonly="1"/>
<field name="num_commande_client" readonly="1"/>
<field name="product_id"/>
<field name="quantite"/>
<field name="date_livraison"/>
<field name="type_commande"/>
<field name="prix"/>
<field name="order_id" readonly="1"/>
<field name="anomalie" readonly="1"/>
<field name="file_id" readonly="1"/>
<field name="write_date" readonly="1" string="Date de modification"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="is_edi_cde_cli_line_tree_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_line_tree_view</field>
<field name="model">is.edi.cde.cli.line</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="ref_article_client" readonly="1"/>
<field name="num_commande_client" readonly="1"/>
<field name="product_id" readonly="0" widget="many2one_clickable"/>
<field name="quantite" sum="Total"/>
<field name="date_livraison"/>
<field name="point_dechargement"/>
<field name="type_commande"/>
<field name="prix"/>
<field name="order_id" readonly="0" widget="many2one_clickable"/>
<field name="anomalie"/>
<field name="file_id" readonly="1"/>
<field name="write_date" readonly="1" string="Date de modification"/>
</tree>
</field>
</record>
<record id="is_edi_cde_cli_line_search_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_line_search_view</field>
<field name="model">is.edi.cde.cli.line</field>
<field name="arch" type="xml">
<search>
<filter string="Anomalies" name="anomalies" domain="[('anomalie','!=','')]"/>
<field name="ref_article_client"/>
<field name="num_commande_client"/>
<field name="product_id"/>
<field name="type_commande"/>
<field name="order_id"/>
<field name="point_dechargement"/>
<field name="anomalie"/>
<field name="file_id"/>
<group string="Regrouper par">
<filter string="Article" context="{'group_by': 'product_id'}"/>
<filter string="Point de déchargement" context="{'group_by': 'point_dechargement'}"/>
<filter string="Anomalie" context="{'group_by': 'anomalie'}"/>
<filter string="Fichier" context="{'group_by': 'file_id'}"/>
<filter string="Date liv" context="{'group_by': 'date_livraison:day'}"/>
</group>
</search>
</field>
</record>
<record id="is_edi_cde_cli_line_action" model="ir.actions.act_window" >
<field name="name">Lignes d'EDI</field>
<field name="res_model">is.edi.cde.cli.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('edi_cde_cli_id','=',active_id)]</field>
<field name="context">{"search_default_anomalies":1}</field>
<field name="limit">100</field>
</record>
<!-- is.edi.cde.cli -->
<record id="is_edi_cde_cli_form_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_form_view</field>
<field name="model">is.edi.cde.cli</field>
<field name="arch" type="xml">
<form>
<header>
<button string='Analyser les fichiers' name="action_analyser_fichiers" type="object" states="analyse" class="oe_highlight" />
<button name="%(is_edi_cde_cli_line_action)d" type="action" string="Détail des lignes" />
<button
string='Importer les commandes'
name="action_importer_commandes" type="object" states="analyse"
confirm="Voulez-vous vraiment importer les commandes ?" />
<field name="state" widget="statusbar" clickable="True" />
</header>
<sheet>
<group>
<field name="name"/>
<field name="partner_id" domain="[('is_import_function','!=','')]" />
<field name="date_maxi"/>
<field name="jour_semaine"/>
<field name="date_debut_prev"/>
<field name="import_function"/>
<field name="file_ids" widget="many2many_binary" />
<field name="nb_lignes"/>
<field name="nb_fichiers"/>
<field style="background:orange" name="nb_anomalies" readonly="1" attrs="{'invisible':[('nb_anomalies','=',0)]}"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="is_edi_cde_cli_tree_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_form_view</field>
<field name="model">is.edi.cde.cli</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="partner_id"/>
<field name="date_maxi"/>
<field name="jour_semaine"/>
<field name="date_debut_prev"/>
<field name="import_function"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="is_edi_cde_cli_search_view" model="ir.ui.view">
<field name="name">is_edi_cde_cli_search_view</field>
<field name="model">is.edi.cde.cli</field>
<field name="arch" type="xml">
<search>
<field name="partner_id" />
<group string="Regrouper par">
<filter string="Client" context="{'group_by': 'partner_id'}"/>
</group>
</search>
</field>
</record>
<record id="is_edi_cde_cli_action" model="ir.actions.act_window">
<field name="name">EDI commandes clients</field>
<field name="res_model">is.edi.cde.cli</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</openerp>