Skip to content

Commit

Permalink
[IMP] account_financial_risk: Track credit limit date as amount
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAionTech committed Aug 1, 2024
1 parent 1d25890 commit f94b108
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account_financial_risk/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions account_financial_risk/views/res_config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
<div class="o_setting_left_pane" />
<div class="o_setting_right_pane">
<label for="account_move_confirm_risk_template_id" />
<span
class="fa fa-lg fa-building-o"
title="Values set here are company-specific."
role="img"
aria-label="Values set here are company-specific."
groups="base.group_multi_company"
/>
<div class="text-muted">
This email template is sent when the 'Partner risk exceeded wizard' for an invoice is confirmed.
</div>
Expand Down

0 comments on commit f94b108

Please sign in to comment.