1
<?xml version="1.0" encoding="utf-8"?>
4
<record model="ir.ui.view" id="sale_view_order_method_cost">
5
<field name="name">sale_view_order_method_cost</field>
6
<field name="model">sale.order</field>
7
<field name="inherit_id" ref="sale.view_order_form" />
8
<field name="type">form</field>
9
<field name="arch" type="xml">
10
/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/
11
<xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_id"]' position="replace">
12
<field name="product_id" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" groups="base.group_user" on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
18
<xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_uom_qty"]' position="replace">
19
<field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
20
name="product_uom_qty" class="oe_inline" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/>
23
<xpath expr='/form/sheet/notebook/page[@string="Order Lines"]/field[@name="order_line"]/tree[@string="Sales Order Lines"]/field[@name="product_uom_qty"]' position="after">
25
<field name="cost_structure_id" invisible="1" />
26
<field name="price_structure_id" domain="[('cost_structure_id','=',cost_structure_id)]" on_change="price_unit(price_structure_id,product_uom,product_uom_qty)" />
28
TODO: <field name="cost_structure_id" domain="[('product_id','=',product_id)]" widget="selection" />
33
<xpath expr='//field[@name="order_line"]' position="before">
34
<group colspan="9" col="9">
37
<field name="status_price" attrs="{'invisible': [('status_bool', '=', False)]}" nolabel="1" />
38
<field name="status_bool" invisible="1" />