From 8e89931176485ae25fc3f84668972c462af0a45d Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Thu, 26 Oct 2023 13:41:16 +0200 Subject: [PATCH] [FIX] account_cutoff_base: tax in view --- account_cutoff_base/models/account_cutoff_line.py | 1 + account_cutoff_base/views/account_cutoff_line.xml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/account_cutoff_base/models/account_cutoff_line.py b/account_cutoff_base/models/account_cutoff_line.py index de6c12a3b10..5a1a2c23223 100644 --- a/account_cutoff_base/models/account_cutoff_line.py +++ b/account_cutoff_base/models/account_cutoff_line.py @@ -12,6 +12,7 @@ class AccountCutoffLine(models.Model): _description = "Account Cut-off Line" parent_id = fields.Many2one("account.cutoff", string="Cut-off", ondelete="cascade") + cutoff_type = fields.Selection(related="parent_id.cutoff_type") company_id = fields.Many2one( "res.company", related="parent_id.company_id", store=True ) diff --git a/account_cutoff_base/views/account_cutoff_line.xml b/account_cutoff_base/views/account_cutoff_line.xml index c8c61f0ce11..55858d4f7e6 100644 --- a/account_cutoff_base/views/account_cutoff_line.xml +++ b/account_cutoff_base/views/account_cutoff_line.xml @@ -17,6 +17,7 @@ invisible="not context.get('account_cutoff_line_main_view', False)" /> + @@ -43,9 +44,9 @@ - +