mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Merge pull request #293 from ForgeFlow/13.0-bp-273
[13.0] Hide smart button when empty
This commit is contained in:
@@ -330,6 +330,7 @@
|
||||
name="action_view_in_shipments"
|
||||
class="oe_stat_button"
|
||||
icon="fa-truck"
|
||||
attrs="{'invisible': [('in_shipment_count', '=', 0)]}"
|
||||
groups="stock.group_stock_user"
|
||||
>
|
||||
<field
|
||||
@@ -343,6 +344,7 @@
|
||||
name="action_view_out_shipments"
|
||||
class="oe_stat_button"
|
||||
icon="fa-truck"
|
||||
attrs="{'invisible': [('out_shipment_count', '=', 0)]}"
|
||||
groups="stock.group_stock_user"
|
||||
>
|
||||
<field
|
||||
@@ -363,6 +365,7 @@
|
||||
class="oe_stat_button"
|
||||
icon="fa-link"
|
||||
groups="stock.group_stock_user"
|
||||
attrs="{'invisible': [('rma_line_count', '=', 0)]}"
|
||||
>
|
||||
<field
|
||||
name="rma_line_count"
|
||||
|
||||
Reference in New Issue
Block a user