changeset fd06f016d197 in modules/sale:6.4
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=fd06f016d197
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 68cb18719534 -r fd06f016d197 sale.py
--- a/sale.py Wed Aug 17 23:48:49 2022 +0200
+++ b/sale.py Thu Sep 15 21:47:26 2022 +0200
@@ -691,12 +691,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