From c62cee33af12518d3823407798528ed37f32ffd0 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 27 Jul 2026 21:46:11 +0200 Subject: [PATCH] Refine trade line form layout --- modules/purchase_trade/purchase.py | 4 +++ .../view/purchase_line_form.xml | 34 +++++++++++-------- .../purchase_trade/view/sale_line_form.xml | 31 ++++++++++------- 3 files changed, 41 insertions(+), 28 deletions(-) diff --git a/modules/purchase_trade/purchase.py b/modules/purchase_trade/purchase.py index 25f507a..03156fd 100755 --- a/modules/purchase_trade/purchase.py +++ b/modules/purchase_trade/purchase.py @@ -2865,6 +2865,10 @@ class Line(metaclass=PoolMeta): def default_finished(cls): return False + @classmethod + def default_delivery_date_edit(cls): + return True + @property def report_fixing_rule(self): pricing_rule = '' diff --git a/modules/purchase_trade/view/purchase_line_form.xml b/modules/purchase_trade/view/purchase_line_form.xml index 8f64d46..a2e0571 100755 --- a/modules/purchase_trade/view/purchase_line_form.xml +++ b/modules/purchase_trade/view/purchase_line_form.xml @@ -21,7 +21,7 @@ this repository contains the full copyright notices and license terms. --> col_widths="1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr,1fr"> + col_widths="min-content,2fr,min-content,1.6fr,min-content,1fr,min-content,130px,min-content,130px,min-content,130px"> xalign="0" yalign="0" col_widths="1fr"> + col_widths="min-content,1fr,min-content,1fr">