From 97bc0f75e0900019f32791d9cd662a693e9fe4d5 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Wed, 19 Jul 2023 00:41:04 +0000 Subject: [PATCH] [IMP] product_matrix: adapt reports to studio report editor Includes several modifications to better work with the new editor: - add placeholders on t-field/t-out nodes - add several div.oe_structure containers in key places for easier user edition - add branching options for several t-if directives without a t-else to display for users (e.g. displaying the payment QR code if the value is set vs. when the value is not set). These branching options are set to a default value (the t-if node) which is what users see by default in the report editor; the t-else node is a version they can manually toggle if they wish) - avoiding 'naked' t nodes as child of table/thead/tbody/tr elements, as these break the table layout in chomium-based engines (that we know of); instead, try to have foreach loops on tr or td nodes directly, or hoist t-set directives above the table node - replace several div or p (block) nodes by span or other inline nodes to make it easier for users to insert content in their vicinity X-original-commit: 744701993ece3099ce4768b35d3c0effff7d46a7 Part-of: odoo/odoo#129492 --- .../product_matrix/views/matrix_templates.xml | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/addons/product_matrix/views/matrix_templates.xml b/addons/product_matrix/views/matrix_templates.xml index 07b10631b60..56c99179d36 100644 --- a/addons/product_matrix/views/matrix_templates.xml +++ b/addons/product_matrix/views/matrix_templates.xml @@ -2,33 +2,37 @@ @@ -44,7 +48,7 @@ accurate to display it. --> - + Variant price