Merge pull request #293 from ForgeFlow/13.0-bp-273

[13.0] Hide smart button when empty
This commit is contained in:
Jordi Ballester Alomar
2022-07-26 18:29:08 +02:00
committed by GitHub
4 changed files with 24 additions and 7 deletions

View File

@@ -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"