1. 程式人生 > >odoo銷售轉生產

odoo銷售轉生產

一個 class shee sta mar read spec table note

<!--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>

odoo銷售轉生產