From fc90b208c34dd77fc95e4996ffa252376a160f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Gonz=C3=A1lez?= Date: Sun, 18 Oct 2020 00:31:19 +0000 Subject: [PATCH] [IMP] sale_management: Non-deterministic elements in views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are currently some elements in views that are not reachable on a deterministic way when those views are inherited. That means, to reach them, positional selectors need to be used (e.g. `last()`). That causes inherited views to get broken when there are small changes in element position. A good example of this is [1]: Unit Price Which can't be filtered by: - Class, because there are several `` elements with the same class - Text content, because when content is translated, selector will fail To solve the above, this change provides IDs for several elements, to make possible/easier to reach them on a safely manner. [1] https://github.com/odoo/odoo/blob/54b40f1eb096/addons/sale_management/report/sale_report_templates.xml#L15 closes odoo/odoo#60388 X-original-commit: 746bacf680c74603f63f7b46304b8fb364e0d60e Signed-off-by: Nicolas Martinelli (nim) Signed-off-by: Luis González [Vauxoo] --- .../report/sale_report_templates.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/sale_management/report/sale_report_templates.xml b/addons/sale_management/report/sale_report_templates.xml index 4979a49b8b4..0816394738c 100644 --- a/addons/sale_management/report/sale_report_templates.xml +++ b/addons/sale_management/report/sale_report_templates.xml @@ -4,28 +4,28 @@
-

+

Options

- +
- - - + + + - - -
DescriptionDisc.%Unit PriceDescriptionDisc.%Unit Price
+ + % +