1
<?xml version="1.0" encoding="utf-8" ?>
5
<record id="sale_order_type_form_view" model="ir.ui.view">
6
<field name="name">sale.order.type.form.view</field>
7
<field name="model">sale.order</field>
8
<field name="type">form</field>
9
<field name="inherit_id" ref="sale.view_order_form" />
10
<field name="arch" type="xml">
12
<xpath expr="/form/group//field[@name='shop_id']" position="replace">
13
<field name="warehouse_id" required="1" />
16
<xpath expr="/form//field[@name='name']" position="replace">
17
<field name="name" required="1" />
19
<!-- UF-1846: we hide the product_uos_qty and product_uos that were displayed after the user right installation -->
20
<xpath expr="/form//field[@name='order_line']/form//field[@name='product_uos_qty']" position="attributes">
21
<attribute name="invisible">1</attribute>
23
<xpath expr="/form//field[@name='order_line']/form//field[@name='product_uos']" position="attributes">
24
<attribute name="invisible">1</attribute>
28
<xpath expr="/form/group//field[@name='invoiced']" position="attributes">
29
<attribute name="string">Invoiced</attribute>
30
<attribute name="attrs">{'invisible': [('intl_customer_ok', '=', False)]}</attribute>
34
<xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//field[@name='product_id']" position="attributes">
35
<attribute name="domain">[('sale_ok', '=', True), ('purchase_type', '=', parent.categ)]</attribute>
38
<xpath expr="/form/group//field[@name='invoiced']" position="attributes">
39
<attribute name="string">Invoiced</attribute>
40
<attribute name="invisible">1</attribute>
43
<xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//page[@string='Extra Info']" position="replace">
45
<xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//page[@string='History']" position="replace">
48
<xpath expr="/form/group/field[@name='client_order_ref']" position="attributes">
49
<attribute name="attrs">{'readonly': ['|', ('partner_type', 'not in', ['external', 'esc']), ('state', 'not in', ['draft', 'validated'])]}</attribute>
52
<xpath expr="/form//field[@name='partner_id']" position="replace">
53
<field name="company_id2" invisible="1" />
54
<field name="partner_id" on_change="onchange_partner_id(partner_id, order_type)" context="{'search_default_customer':1}" required="1" domain="[('customer','=',True), ('id', '!=', company_id2), ('check_partner_so', '=', {'order_type':order_type, 'partner_id': partner_id})]"/>
56
<xpath expr="/form/group/field[@name='shipped']" position="after">
57
<!-- <field name="order_type" on_change="shipping_policy_change(order_policy, order_type, partner_id, 'order_type')" /> -->
58
<field name="order_type" />
59
<field name="priority" />
60
<field name="categ" on_change="onchange_categ(categ)" />
61
<field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')]}" />
62
<field name="details" />
63
<field name="noinvoice" invisible="1" />
65
<xpath expr="/form/notebook/page[@string='Other Information']/group/field[@name='order_policy']" position="replace">
66
<field name="order_policy" on_change="shipping_policy_change(order_policy)"/>
68
<xpath expr="/form/notebook/page[@string='Other Information']/group/field[@name='invoice_quantity']" position="replace">
69
<field name="invoice_quantity" readonly="1" />
71
<button name="manual_invoice" position="replace">
72
<group colspan="1" col="1" attrs="{'invisible': [('noinvoice', '=', True)]}">
73
<button name="manual_invoice" states="manual" string="Create Final Invoice" icon="gtk-go-forward" type="object"/>
77
<xpath expr="/form/notebook//page[@string='Other Information']/group//field[@name='picking_policy']" position="attributes">
78
<attribute name="invisible">1</attribute>
81
<xpath expr="/form/notebook//page[@string='History']" position="replace">
82
<page string="History" attrs="{'invisible': [( 'intl_customer_ok', '=', False )]}">
83
<separator colspan="4" string="Invoices"/>
84
<field colspan="4" name="invoice_ids" nolabel="1" context="{'form_view_ref':'account.invoice_form'}"/>
88
<!-- <xpath expr="/form/notebook/page[@string='Other Information']/group/field[@name='order_policy']" position="replace">
89
<field name="order_policy" on_change="shipping_policy_change(order_policy, order_type, partner_id, 'order_policy')"/>
91
<xpath expr="/form/notebook//tree/field[@name='price_subtotal']" position="after">
92
<field name="state" invisible="1" />
93
<button string="Split line" icon="terp-stock_effects-object-colorize"
94
name="open_split_wizard" type="object"
95
attrs="{'invisible': [('state', 'in', ('sourced', 'confirmed', 'done', 'cancel', 'exception'))]}" />
98
<xpath expr="/form/notebook//field[@name='incoterm']" position="attributes">
99
<attribute name="attrs">{'readonly': [('state', '!=', 'state')], 'invisible': [('intl_customer_ok', '=', False)] }</attribute>
102
<xpath expr="/form/notebook//field[@name='user_id']" position="attributes">
103
<attribute name="attrs">{'readonly': [('state', '!=', 'state')]}</attribute>
105
<xpath expr="/form/notebook//field[@name='origin']" position="attributes">
106
<attribute name="attrs">{'readonly': [('state', '!=', 'state')]}</attribute>
108
<xpath expr="/form/notebook//field[@name='payment_term']" position="attributes">
109
<attribute name="attrs">{'readonly': [('state', '!=', 'state')]}</attribute>
110
<attribute name="invisible">1</attribute>
112
<xpath expr="/form/notebook//field[@name='fiscal_position']" position="attributes">
113
<attribute name="attrs">{'readonly': [('state', '!=', 'state')]}</attribute>
115
<xpath expr="//field[@name='create_date']" position="replace" />
116
<xpath expr="//field[@name='date_confirm']" position="replace" />
117
<xpath expr="//page[2]//separator[@string='Dates']" position="replace" />
122
<record id="sale_order_type_tree_view" model="ir.ui.view">
123
<field name="name">sale.order.type.tree.view</field>
124
<field name="model">sale.order</field>
125
<field name="type">tree</field>
126
<field name="inherit_id" ref="sale.view_order_tree" />
127
<field name="arch" type="xml">
129
<xpath expr="/tree/field[@name='date_order']" position="before">
130
<field name="order_type" />
131
<field name="priority" />
132
<field name="categ" />
134
<xpath expr="/tree/field[@name='amount_untaxed']" position="replace" />
135
<xpath expr="/tree/field[@name='amount_total']" position="after">
136
<field name="currency_id" />
138
<xpath expr="/tree/field[@name='state']" position="replace">
139
<field name="state" invisible="True" />
140
<field name="state_hidden_sale_order" />
146
<record id="sale_order_type_search_view" model="ir.ui.view">
147
<field name="name">sale.order.type.search.view</field>
148
<field name="model">sale.order</field>
149
<field name="type">search</field>
150
<field name="inherit_id" ref="sale.view_sales_order_filter" />
151
<field name="arch" type="xml">
153
<xpath expr="/search//filter[@string='Quotations']" position="replace">
154
<filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Field Order that haven't yet been confirmed" />
155
<filter icon="terp-camera_test" string="Validated" domain="[('state','=','validated')]" help="Field Order validated"/>
156
<filter icon="gtk-paste-v" name="sourced" string="Sourced" domain="[('state','=','sourced')]" separator="1" />
158
<xpath expr="/search//filter[@string='Sales']" position="replace">
159
<filter icon="terp-check" string="Confirmed" domain="[('state','in',('manual','progress'))]"/>
160
<filter icon="terp-dialog-close" name="done" string="Closed" domain="[('state_hidden_sale_order','=','done')]"/>
163
<xpath expr="/search//filter[@string='To Invoice']" position="after">
164
<separator orientation="vertical" />
165
<filter icon="gtk-missing-image" name="inactive" string="Show Split" domain="[('state','=','done'), ('split_type_sale_order', '=', 'original_sale_order')]" context="{'active_test': False}" separator="1" />
168
<xpath expr="/search/field[@name='name']" position="after">
169
<field name="client_order_ref" />
171
<xpath expr="/search/field[@name='user_id']" position="after">
173
<group string="Type" expand="0">
174
<filter icon="terp-check" string="Regular" domain="[('order_type','=','regular')]"/>
175
<filter icon="terp-stage" string="Donation before expiry" domain="[('order_type','=','donation_exp')]"/>
176
<filter icon="terp-gtk-jump-to-ltr" string="Standard Donation" domain="[('order_type','=','donation_st')]"/>
177
<filter icon="terp-partner" string="Loan" domain="[('order_type','=','loan')]"/>
180
<group string="Priority" expand="0">
181
<filter icon="gtk-dialog-warning" string="Emergency" domain="[('priority','=','emergency')]"/>
182
<filter icon="gtk-yes" string="Normal" domain="[('priority','=','normal')]"/>
183
<filter icon="gtk-info" string="Priority" domain="[('priority','=','priority')]"/>
186
<group string="Category" expand="0">
187
<filter icon="gtk-color-picker" string="Medical" domain="[('categ','=','medical')]"/>
188
<filter icon="terp-stock" string="Logistic" domain="[('categ','=','log')]"/>
189
<filter icon="terp-purchase" string="Service" domain="[('categ','=','service')]"/>
190
<filter icon="gtk-network" string="Other" domain="[('categ','=','other')]"/>
194
<xpath expr="/search/group/filter[@string='Customer']" position="before">
195
<filter string="Order Type" icon="terp-rating-rated" domain="[]" context="{'group_by':'order_type'}"/>
196
<separator orientation="vertical"/>
197
<filter string="Priority" icon="terp-project" domain="[]" context="{'group_by':'priority'}"/>
198
<separator orientation="vertical"/>
199
<filter string="Category" icon="terp-translate" domain="[]" context="{'group_by':'categ'}"/>
200
<separator orientation="vertical"/>
206
<!-- REWORK THE SALE MENU ACCORDING TO UF-657 ERGONOMIC IMPROVEMENTS -->
207
<!-- MOVED THIS BLOCK TO hidden_menu.xml === DO NOT HARD DELETE MenuItem -->
211
<delete id="base.menu_partner_address_form" model="ir.ui.menu" />
212
<delete id="base.menu_address_book" model="ir.ui.menu" />
213
<delete id="sale.menu_invoiced" model="ir.ui.menu" />
214
<delete id="sale.menu_action_picking_list_to_invoice" model="ir.ui.menu" />
215
<delete id="sale.menu_invoicing_sales_order_lines" model="ir.ui.menu" />
219
<menuitem action="sale.action_order_form" id="sale.menu_sale_order" parent="base.menu_sales" sequence="1" />
221
<menuitem action="base.action_partner_form"
222
id="base.menu_partner_form"
223
parent="base.menu_sales"
226
<menuitem id="base.menu_base_partner" sequence="3" />
228
<!-- Deliver Products -->
229
<!--<menuitem id="menu_sales_deliver_products"
230
name="Deliver Products"
232
parent="stock.menu_stock_root" />
234
<menuitem action="stock.action_out_picking_move" id="menu_sale_action_picking_tree_out_move"
235
parent="menu_sales_deliver_products" sequence="10"/>-->
238
<!--<menuitem action="product.product_category_action"
239
id="product.menu_products_category"
240
parent="base.menu_product"
243
<record id="view_order_line_to_correct_form" model="ir.ui.view">
244
<field name="name">sale.order.line.to.correct.form</field>
245
<field name="model">sale.order.line</field>
246
<field name="type">form</field>
247
<field name="arch" type="xml">
250
<page string="Order Line">
251
<field name="product_id" colspan="4" on_change="requested_product_id_change(product_id, comment)" />
252
<field name="product_uom_qty" />
253
<field name="product_uom" on_change="onchange_uom(product_id, product_uom)"/>
254
<field name="price_unit" invisible="1"/>
255
<field name="currency_id" />
256
<field name="date_planned" />
257
<field name="type" on_change="requested_type_change(product_id, type)"/>
258
<field name="my_company_id" invisible="1" />
259
<field name="supplier"
260
context="{'product_id': product_id, 'choose_supplier': True}"
261
attrs="{'readonly': [('type', '=', 'make_to_stock')]}"
262
domain="[('supplier', '=', True), ('id', '!=', my_company_id), ('check_partner_ir', '=', True)]"
265
<field name="state"/>
268
<!-- EXACT COPY-PASTE FROM product_nomenclature_view.xml -->
269
<page string="Nomenclature Selection">
271
<group colspan="4" col="2">
273
<field name="nomenclature_code" colspan="2" invisible="True" />
274
<field name="nomenclature_description" colspan="2" readonly="True" />
275
<field name="comment" colspan="2"
276
on_change="comment_change(comment,product_id,nomen_manda_0)"
277
attrs="{'required':[('product_id', '=', False)]}" />
282
<group colspan="2" col="5">
283
<separator string="Mandatory Levels" colspan="5" />
285
<group colspan="4" col="2">
286
<field name="nomen_manda_0"
287
domain="[('level', '=', '0'), ('type', '=', 'mandatory')]"
289
on_change="onChangeSearchNomenclature(0, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
290
attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}"
292
<field name="nomen_manda_1"
293
domain="[('level', '=', '1'), ('type', '=', 'mandatory')]"
295
get_selection="get_nomen"
296
on_change="onChangeSearchNomenclature(1, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
297
attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}"
299
<field name="nomen_manda_2"
300
domain="[('level', '=', '2'), ('type', '=', 'mandatory')]"
302
get_selection="get_nomen"
303
on_change="onChangeSearchNomenclature(2, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
304
attrs="{'required':[('product_id', '=', False)], 'readonly':[('product_id', '!=', False)]}"
306
<field name="nomen_manda_3"
307
domain="[('level', '=', '3'), ('type', '=', 'mandatory')]"
309
get_selection="get_nomen"
310
on_change="onChangeSearchNomenclature(3, 'mandatory', nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, False)"
311
attrs="{'readonly':[('product_id', '!=', False)]}"
317
<group colspan="2" col="5">
318
<separator string="Optional Levels" colspan="4" />
321
<group colspan="4" col="2">
322
<field name="nomen_sub_0"
323
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
325
get_selection="get_sub_nomen"
326
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
327
attrs="{'readonly':[('product_id', '!=', False)]}"
329
<field name="nomen_sub_1"
330
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
332
get_selection="get_sub_nomen"
333
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
334
attrs="{'readonly':[('product_id', '!=', False)]}"
336
<field name="nomen_sub_2"
337
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
339
get_selection="get_sub_nomen"
340
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
341
attrs="{'readonly':[('product_id', '!=', False)]}"
343
<field name="nomen_sub_3"
344
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
346
get_selection="get_sub_nomen"
347
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
348
attrs="{'readonly':[('product_id', '!=', False)]}"
350
<field name="nomen_sub_4"
351
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
353
get_selection="get_sub_nomen"
354
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
355
attrs="{'readonly':[('product_id', '!=', False)]}"
357
<field name="nomen_sub_5"
358
domain="[('type', '=', 'optional'), ('id', 'in', [0])]"
360
get_selection="get_sub_nomen"
361
on_change="onChangeSubNom(nomen_manda_0, nomen_manda_1, nomen_manda_2, nomen_manda_3, nomen_sub_0, nomen_sub_1, nomen_sub_2, nomen_sub_3, nomen_sub_4, nomen_sub_5)"
362
attrs="{'readonly':[('product_id', '!=', False)]}"
373
<field name="to_correct_ok" readonly="1" invisible="1"/>
374
<field name="show_msg_ok" readonly="1" invisible="1"/>
375
<field name="text_error"
379
attrs="{'invisible': [('to_correct_ok', '=', False), '|', ('show_msg_ok', '!=',True)]}"/>
382
name="save_and_close"
383
string="Save and Close"
390
<record id="view_compute_schedulers_wizard_replace" model="ir.ui.view">
391
<field name="name">Compute Schedulers</field>
392
<field name="model">procurement.order.compute.all</field>
393
<field name="type">form</field>
394
<field name="inherit_id" ref="procurement.view_compute_schedulers_wizard" />
395
<field name="arch" type="xml">
397
<xpath expr="/form" position="replace">
399
<label string="This wizard allows you to run all procurement, production and/or purchase orders that should be processed based on their configuration. By default, the scheduler is launched automatically every night by OpenERP. You can use this menu to force it to be launched now. Note that it runs in the background, you may have to wait for a few minutes until it has finished computing." colspan="4"/>
400
<separator colspan="4"/>
401
<group col="2" colspan="4">
402
<button icon='gtk-cancel' special="cancel"
404
<button name="procure_calculation" string="Compute POs Creation"
405
colspan="1" type="object" icon="gtk-ok" />
415
<!-- <delete id="base.menu_country_partner" model="ir.ui.menu" />
416
used in useability_dashboard_and_menu/menu/supply_config_menu.xml
419
<menuitem id="menu_localisation" name="Localisation" parent="base.menu_administration" sequence="1"/>
420
<menuitem action="base.action_country" id="menu_country_partner" parent="menu_localisation" sequence="0"/>
421
<menuitem action="base.action_country_state" id="menu_country_state_partner" parent="menu_localisation" sequence="1"/>
423
<!-- <delete id="base.menu_partner_title_partner" model="ir.ui.menu" />
424
used in useability_dashboard_and_menu/menu/supply_config_menu.xml
428
<!-- <delete id="base.menu_partner_title_contact" model="ir.ui.menu" />
429
<delete id="base.menu_action_res_bank_form" model="ir.ui.menu" />
430
used in useability_dashboard_and_menu/menu/supply_config_menu.xml