From ccca46c9924bcff43d5ea4b4618a94b00f2711cf Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 16 Aug 2024 14:24:06 +0200 Subject: [PATCH] [FIX] runbot_merge: layout backend issues galore - Odoo 17 seems to not be adjusting `nolabel` fields to be `colspan=2` by default, so every such occurrence has to be adjusted by hand or it gets squeezed in just the labels column. - Because of the loss of readonly mode, some fields / setups which previously looked ugly during the rare edition (e.g. Pr titles) now look ugly all the time. Rework layout and force them to always be readonly (hopefully we won't need to edit those). - This is compounded by unfortunate styling I can't find how to override e.g. char fields are 100% width even if readonly. - `
` system requires some workarounds to have the right layout and spacing (notably `header` has a bunch of awful rules which we need to work around via an interstitial div to set up our own flexbox). --- runbot_merge/views/batch.xml | 6 ++-- runbot_merge/views/mergebot.xml | 49 +++++++++++++++--------------- runbot_merge/views/res_partner.xml | 14 ++++----- 3 files changed, 34 insertions(+), 35 deletions(-) diff --git a/runbot_merge/views/batch.xml b/runbot_merge/views/batch.xml index 3579516c..f030f55d 100644 --- a/runbot_merge/views/batch.xml +++ b/runbot_merge/views/batch.xml @@ -57,7 +57,7 @@ - +
-
+

- # + #

- - - (blocked: ) - + + + + (blocked: ) + - () + ()

@@ -179,11 +185,6 @@ - - - - - @@ -200,7 +201,7 @@ - +