changeset 9872f787e75d in modules/sale:6.0
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=9872f787e75d
description:
Hide amounts, links and button in modify header form
issue11708
review431591005
(grafted from 41337486223b325490c4a12f70333a374212af7e)
diffstat:
sale.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (19 lines):
diff -r 9f6130728040 -r 9872f787e75d sale.py
--- a/sale.py Wed Aug 03 23:50:16 2022 +0200
+++ b/sale.py Thu Sep 15 21:47:26 2022 +0200
@@ -713,12 +713,9 @@
if Transaction().context.get('modify_header'):
attributes.extend([
('//group[@id="states"]', 'states', {'invisible': True}),
- ('//group[@id="amount_buttons"]',
- 'states', {'invisible': True}),
- ('//page[@name="invoices"]',
- 'states', {'invisible': True}),
- ('//page[@name="shipments"]',
- 'states', {'invisible': True}),
+ ('//group[@id="amount"]', 'states', {'invisible': True}),
+ ('//group[@id="links"]', 'states', {'invisible': True}),
+ ('//group[@id="buttons"]', 'states', {'invisible': True}),
])
return attributes