changeset 5c4d7e2e1690 in modules/sale:6.2
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=5c4d7e2e1690
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 fb4c14627e0d -r 5c4d7e2e1690 sale.py
--- a/sale.py   Wed Aug 17 23:49:09 2022 +0200
+++ b/sale.py   Thu Sep 15 21:47:26 2022 +0200
@@ -678,12 +678,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
 

Reply via email to