28 lines
1.7 KiB
XML
28 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="purchase_order_form_jikimo_purchase_request" model="ir.ui.view">
|
|
<field name="name">purchase.order.inherited.form.jikimo.purchase.request</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="mrp_subcontracting_purchase.purchase_order_form_mrp_subcontracting_purchase"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('oe_button_box')]/button[@name='action_view_subcontracting_resupply']" position="before">
|
|
<button
|
|
class="oe_stat_button" name="action_view_preform_body_purchase_order"
|
|
type="object" icon="fa-truck" attrs="{'invisible': [('purchase_order_count', '=', 0)]}" groups="stock.group_stock_user">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value"><field name="purchase_order_count"/></span>
|
|
<span class="o_stat_text">子·采购订单</span>
|
|
</div>
|
|
</button>
|
|
<button
|
|
class="oe_stat_button" name="action_view_preform_body_purchase_request"
|
|
type="object" icon="fa-truck" attrs="{'invisible': [('purchase_request_count', '=', 0)]}" groups="stock.group_stock_user">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value"><field name="purchase_request_count"/></span>
|
|
<span class="o_stat_text">子·采购申请</span>
|
|
</div>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo> |