From f94b108eb5076aabb9a577450fb2f4abcc5ea9a1 Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Thu, 1 Aug 2024 09:35:23 +0200 Subject: [PATCH] [IMP] account_financial_risk: Track credit limit date as amount --- account_financial_risk/models/res_partner.py | 2 ++ account_financial_risk/views/res_config_view.xml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/account_financial_risk/models/res_partner.py b/account_financial_risk/models/res_partner.py index a3b4c9fb9..1cc525e7c 100644 --- a/account_financial_risk/models/res_partner.py +++ b/account_financial_risk/models/res_partner.py @@ -1,4 +1,5 @@ # Copyright 2016-2021 Tecnativa - Carlos Dauden +# Copyright 2024 Simone Rubino - Aion Tech # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from datetime import datetime @@ -157,6 +158,7 @@ class ResPartner(models.Model): store=True, readonly=False, string="Last Credit Limit Date", + tracking=True, ) risk_remaining_value = fields.Monetary( compute="_compute_risk_remaining", diff --git a/account_financial_risk/views/res_config_view.xml b/account_financial_risk/views/res_config_view.xml index 08fbdeabc..1d9e0a9d3 100644 --- a/account_financial_risk/views/res_config_view.xml +++ b/account_financial_risk/views/res_config_view.xml @@ -50,6 +50,13 @@