changeset 61dfd17b8423 in modules/account_invoice_stock:default
details:
https://hg.tryton.org/modules/account_invoice_stock?cmd=changeset;node=61dfd17b8423
description:
Do not show invoice lines if no types are available
issue10103
review316871002
diffstat:
stock.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 9ea5b8e23f0a -r 61dfd17b8423 stock.py
--- a/stock.py Thu Feb 04 23:58:42 2021 +0100
+++ b/stock.py Mon Feb 15 19:13:09 2021 +0100
@@ -24,6 +24,9 @@
('invoice_type', 'in', Eval('invoice_types', [])),
],
],
+ states={
+ 'invisible': ~Eval('invoice_types', []),
+ },
depends=['product_uom_category', 'invoice_types'])
invoice_types = fields.Function(
fields.MultiSelection('get_invoice_types', "Invoice Types"),