From 8a2c9439bdec7cd137d2037c0a67a5f8e29135d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 15 Sep 2022 21:47:26 +0200 Subject: [PATCH] Hide amounts, links and button in modify header form issue11708 review431591005 (grafted from 41337486223b325490c4a12f70333a374212af7e) --HG-- branch : 6.0 --- sale.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sale.py b/sale.py index dc2cf2c02c..e0e56eddda 100644 --- a/sale.py +++ b/sale.py @@ -713,12 +713,9 @@ class Sale( 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