16
16
<xpath expr="/form//field[@name='name']" position="replace">
17
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
20
<xpath expr="/form/group//field[@name='invoiced']" position="attributes">
29
21
<attribute name="string">Invoiced</attribute>
30
22
<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">
25
<xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//field[@name='product_id']" position="attributes">
35
26
<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
29
<xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//page[@string='Extra Info']" position="replace">
45
31
<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">
34
<xpath expr="/form/group/field[@name='client_order_ref']" position="attributes">
49
35
<attribute name="attrs">{'readonly': ['|', ('partner_type', 'not in', ['external', 'esc']), ('state', 'not in', ['draft', 'validated'])]}</attribute>
52
38
<xpath expr="/form//field[@name='partner_id']" position="replace">
53
39
<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})]"/>
40
<field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_customer':1}" required="1"/>
56
42
<xpath expr="/form/group/field[@name='shipped']" position="after">
57
43
<!-- <field name="order_type" on_change="shipping_policy_change(order_policy, order_type, partner_id, 'order_type')" /> -->
58
44
<field name="order_type" />
59
45
<field name="priority" />
60
47
<field name="categ" on_change="onchange_categ(categ)" />
61
48
<field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')]}" />
62
49
<field name="details" />
65
52
<xpath expr="/form/notebook/page[@string='Other Information']/group/field[@name='order_policy']" position="replace">
66
53
<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" />
55
<button name="%(sale.action_view_sale_advance_payment_inv)d" position="replace">
56
<group colspan="1" col="1" attrs="{'invisible': [('noinvoice', '=', True)]}">
57
<button name="%(sale.action_view_sale_advance_payment_inv)d" string="Advance Invoice"
58
type="action" icon="gtk-execute" states="draft,manual" />
71
61
<button name="manual_invoice" position="replace">
72
62
<group colspan="1" col="1" attrs="{'invisible': [('noinvoice', '=', True)]}">
73
63
<button name="manual_invoice" states="manual" string="Create Final Invoice" icon="gtk-go-forward" type="object"/>
155
145
<filter icon="terp-camera_test" string="Validated" domain="[('state','=','validated')]" help="Field Order validated"/>
156
146
<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
149
<xpath expr="/search//filter[@string='To Invoice']" position="after">
164
150
<separator orientation="vertical" />
206
192
<!-- REWORK THE SALE MENU ACCORDING TO UF-657 ERGONOMIC IMPROVEMENTS -->
207
<!-- MOVED THIS BLOCK TO hidden_menu.xml === DO NOT HARD DELETE MenuItem -->
211
193
<delete id="base.menu_partner_address_form" model="ir.ui.menu" />
212
194
<delete id="base.menu_address_book" model="ir.ui.menu" />
213
195
<delete id="sale.menu_invoiced" model="ir.ui.menu" />
214
196
<delete id="sale.menu_action_picking_list_to_invoice" model="ir.ui.menu" />
215
197
<delete id="sale.menu_invoicing_sales_order_lines" model="ir.ui.menu" />
219
199
<menuitem action="sale.action_order_form" id="sale.menu_sale_order" parent="base.menu_sales" sequence="1" />
221
201
<menuitem action="base.action_partner_form"
394
<delete id="base.menu_crm_config_lead" model="ir.ui.menu" />
395
<delete id="base.menu_res_partner_canal-act" model="ir.ui.menu" />
396
<delete id="resource.menu_resource_config" model="ir.ui.menu" />
397
<!-- <delete id="sale.menu_action_shop_form" model="ir.ui.menu" />
398
used in useability_dashboard_and_menu/menu/supply_config_menu.xml
400
<delete id="resource.menu_view_resource_calendar_leaves_search" model="ir.ui.menu" />
402
<delete id="base.menu_country_state_partner" model="ir.ui.menu" />
415
403
<!-- <delete id="base.menu_country_partner" model="ir.ui.menu" />
416
404
used in useability_dashboard_and_menu/menu/supply_config_menu.xml
406
<delete id="base.menu_localisation" model="ir.ui.menu" />
419
408
<menuitem id="menu_localisation" name="Localisation" parent="base.menu_administration" sequence="1"/>
420
409
<menuitem action="base.action_country" id="menu_country_partner" parent="menu_localisation" sequence="0"/>