-
Notifications
You must be signed in to change notification settings - Fork 53
/
stock_picking_views.xml
20 lines (20 loc) · 1.08 KB
/
stock_picking_views.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock_request.view_picking_form"/>
<field name="arch" type="xml">
<!-- Probar -->
<button name="action_view_stock_request" position="attributes">
<attribute name="groups">!stock_request.group_stock_request_order</attribute>
</button>
<button name="action_view_stock_request" position="after">
<button type="object" name="action_view_stock_order_request" class="oe_stat_button" icon="fa-chain" attrs="{'invisible':[('stock_request_order_ids', '=', [])]}" groups="stock_request.group_stock_request_order">
<field name="stock_request_order_count" widget="statinfo" string="Stock Request Orders"/>
<field name="stock_request_order_ids" invisible="1"/>
</button>
</button>
</field>
</record>
</odoo>