页签中加按钮 odoo里面

<notebook>
<page string="">
<field name="line_id" >
<tree string="订单明细" editable="false">
<field name="partner_id" invisible="1"/>
<field name="product_id" on_change="get_product_unit(product_id,parent.cust_order_no,parent.date_planned,parent.partner_id)"/>
<field name="pname"/>
<field name="spec"/>
<field name="product_qty" on_change="qty_price_change(product_qty,price)"/>
<field name="dlvqty"/>
<field name="price" />
<field name="total"/>
<field name="product_uom"/>
<field name="packing_type1"/>
<field name="date_planned"/>
<field name="requirement_id" on_change="sale_requirements_change(requirement_id)"/>
<field name="memo"/>
<field name="choice" />
<field name="state"/>
</tree>
</field>
<group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
<field name="countsqty" widget='monetary' />
<field name="subtotal" widget='monetary' />
<button name="action_confirm_all_sale_order" string="确认" type="action" />
</group>
<div class="oe_clear"/>
</page>









原文地址:https://www.cnblogs.com/1314520xh/p/6906845.html