<!--form view 一个form视图足以-->
<record id="view_sale_tomrp_form" model="ir.ui.view">
<field name="name">sale.tomrp.form</field>
<field name="model">sale.tomrp</field>
<field name="arch" type="xml">
<form string="Sale To Mrp">
<header>
<button name="action_create_mrp_production" string="生成生产订单" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="1,2"/>
</header>
<sheet>
<h1>
<label string="单号"/>
<field name="name" class="oe_inline" readonly="1"/>
</h1>
<group>
<group>
<field name="date"/>
<field name="sale_order_id"/>
<field name="remark"/>
</group>
<group>
</group>
</group>
<notebook>
<page string="明细">
<field name="order_line">
<tree editable="top">
<field name="product_id" />
<field name="pname"/>
<field name="spec"/>
<field name="totalqty"/>
<field name="kcqty"/>
<field name="scwqqty"/>
<field name="saleqty"/>
<field name="proposalmrpqty"/>
<field name="mrp_datetime"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
05-11 20:22