Skip to content

Commit 596ce1c

Browse files
[14.0][IMP] rma_sale: hide buttons if count is 0
1 parent 05a81ff commit 596ce1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rma_sale/views/rma_order_view.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class="oe_stat_button"
1313
icon="fa-pencil-square-o"
1414
groups="sales_team.group_sale_salesman"
15-
invisible="type != 'customer'"
15+
invisible="type != 'customer' or sale_count == 0"
1616
>
1717
<field name="sale_count" widget="statinfo" string="Origin SO" />
1818
</button>

0 commit comments

Comments
 (0)