115 lines
8.2 KiB
XML
115 lines
8.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="sale.action_order_line_tree2" model="ir.actions.act_window">
|
|
<field name="domain">[('layout_type','=', 'article')]</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_order_form_inherit_1">
|
|
<field name="name">sale.order.form.inherit_1</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="priority">1000</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='order_line']" position="replace">
|
|
<field name="abstract_line_ids">
|
|
<form string="Order Line">
|
|
<notebook>
|
|
<page string="Order Line">
|
|
<group colspan="4" col="5">
|
|
<field colspan="3" name="layout_type" on_change="onchange_sale_order_line_view(layout_type)"/>
|
|
<field name="sequence" groups="base.group_no_one"/>
|
|
<field colspan="3"
|
|
context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
|
|
name="product_id"
|
|
attrs="{'invisible':[('layout_type','!=','article')]}"
|
|
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, product_packaging, parent.fiscal_position, False, context)"
|
|
select="1"/>
|
|
<field
|
|
name="name" required="0"
|
|
attrs="{'invisible':[('layout_type','in',('line','break','subtotal'))], 'required':[('layout_type','not in',['line','break'])]}"/>
|
|
|
|
<field
|
|
context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
|
|
name="product_uom_qty"
|
|
attrs="{'invisible':[('layout_type','!=','article')]}"
|
|
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, product_packaging, parent.fiscal_position, True, context)"/>
|
|
<field name="product_uom"
|
|
nolabel="1"
|
|
groups="product.group_uom"
|
|
required="0"
|
|
attrs="{'invisible':[('layout_type','!=','article')], 'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"
|
|
on_change="product_uom_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, context)"/>
|
|
<field name="price_unit"
|
|
attrs="{'invisible':[('layout_type','!=','article')],'required':[('layout_type','not in',['title','text','subtotal','line','break'])]}"/>
|
|
|
|
<field groups="product.group_uos" name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
|
|
<field groups="product.group_uos" name="product_uos" nolabel="1"/>
|
|
<newline/>
|
|
|
|
<field
|
|
name="product_packaging"
|
|
colspan="3"
|
|
attrs="{'invisible':[('layout_type','!=','article')]}"
|
|
context="{'partner_id':parent.partner_id,'quantity':product_uom_qty,'pricelist':parent.pricelist_id,'shop':parent.shop_id,'uom':product_uom}"
|
|
on_change="product_packaging_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, parent.partner_id, product_packaging, True, context)"
|
|
domain="[('product_id','=',product_id)]"
|
|
groups="product.group_stock_packaging"/>
|
|
<field
|
|
name="discount"
|
|
attrs="{'invisible':[('layout_type','!=','article')]}"/>
|
|
|
|
<group colspan="5"
|
|
attrs="{'invisible':[('layout_type','not in', ['article','text'])]}">
|
|
<separator colspan="4" string="Notes"/>
|
|
<field colspan="4" name="notes" nolabel="1"/>
|
|
</group>
|
|
|
|
<group colspan="5"
|
|
attrs="{'invisible':[('layout_type','!=','article')]}">
|
|
<separator colspan="4" string="Taxes"/>
|
|
<field colspan="4" name="tax_id" domain="[('parent_id','=',False)]" nolabel="1"/>
|
|
</group>
|
|
|
|
<group col="5" colspan="5" attrs="{'invisible':[('layout_type','!=','article')]}">
|
|
<separator colspan="5" string="States"/>
|
|
<field name="state"/>
|
|
<field name="invoiced"/>
|
|
<button colspan="1" name="%(sale.action_view_sale_order_line_make_invoice)d" states="confirmed" string="Make Invoice" type="action"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Extra Info" attrs="{'invisible':[('layout_type','!=','article')]}">
|
|
<field name="type" attrs="{'invisible':[('layout_type','!=','article')]}"/>
|
|
<field name="delay" select="2" attrs="{'invisible':[('layout_type','!=','article')]}"/>
|
|
<field name="address_allotment_id" select="2"/>
|
|
<separator colspan="4" string="Properties"/>
|
|
<field colspan="4" name="property_ids" nolabel="1"/>
|
|
</page>
|
|
<page string="History" attrs="{'invisible':[('layout_type','!=','article')]}">
|
|
<separator colspan="4" string="Invoice Lines"/>
|
|
<field colspan="4" name="invoice_lines" nolabel="1"/>
|
|
<separator colspan="4" string="Stock Moves"/>
|
|
<field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
|
|
</page>
|
|
</notebook>
|
|
</form>
|
|
<tree string="Sales order lines">
|
|
<field colspan="4" name="name"/>
|
|
<field name="product_uom_qty" string="Qty"/>
|
|
<field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
|
|
<field name="discount"/>
|
|
<field name="price_unit"/>
|
|
<!-- field name="price_net"/-->
|
|
<field name="price_subtotal"/>
|
|
<field name="sequence"/>
|
|
</tree>
|
|
</field>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|