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 @@ - +