Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
ff435af
[ADD] partner_financial_risk (#292)
carlosdauden Oct 23, 2016
c68b99d
[9.0][FIX] partner_financial_risk: Refund were not contemplated
carlosdauden Feb 3, 2017
fa7d227
[9.0][IMP] partner_financial_risk: Improve performance (#385)
carlosdauden May 29, 2017
0f11af9
[9.0][FIX] partner_financial_risk: Error when risk_total includes dra…
carlosdauden Sep 5, 2017
0adbd35
[9.0][IMP] partner_financial_risk: Add track visibility to credit limit
chienandalu Sep 13, 2017
27e713e
[MIG] Partner Financial Risk : Migration to 10.0
Ehtaga Jul 25, 2017
0e13b52
[IMP] Minor changes
chienandalu Sep 7, 2017
7bb3f92
[FIX] partner_financial_risk: Invoice refunds add risk
carlosdauden Oct 13, 2017
88bc338
[IMP] partner_financial_risk: New fields in view. Improve code.
carlosdauden Nov 3, 2017
4b0c551
[10.0][IMP] partner_financial_risk: Improve multicompany cron (#530)
carlosdauden Jan 31, 2018
8df8ec6
[MIG] partner_financial_risk: Migration to 11.0
carlosdauden Apr 25, 2018
f33e780
[REN] partner_financial_risk > account_financial_risk
pedrobaeza May 7, 2018
bf0a75f
[IMP] account_financial_risk: Improve table layout
carlosdauden Jun 21, 2018
dae9e97
[IMP] account_financial_risk: Only block normal customer invoices val…
carlosdauden Aug 7, 2018
5d49175
[MIG] account_financial_risk: Migration to 12.0
ernestotejeda Feb 22, 2019
67a58d7
[IMP] account_financial_risk: Manage risk in multiple invoice confirm…
carlosdauden Mar 25, 2019
8765dd2
Translated using Weblate (French)
chafique-delli Jul 23, 2019
ae9c47d
Translated using Weblate (Italian)
Oct 19, 2019
7d1c7e4
[FIX]account_financial_risk: risk_exception field explicitly setted t…
jesusVMayor Nov 14, 2019
1f5ed2c
Translated using Weblate (Spanish)
Feb 4, 2020
e47b28d
Translated using Weblate (Spanish (Chile))
Feb 4, 2020
a1aeffa
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 20, 2020
223f875
Translated using Weblate (Portuguese)
pedrocs-exo Feb 29, 2020
9f348b6
[IMP] account_financial_risk: Add allow overrisk invoice validation o…
carlosdauden Mar 23, 2020
ff762b2
[IMP] account_financial_risk: Avoid compute all partners when save co…
carlosdauden Feb 27, 2020
1717e0a
[IMP] account_financial_risk account_payment_return_financial_risk sa…
carlosdauden May 26, 2020
9e59e30
[IMP] account_financial_risk: black, isort, prettier
MiquelRForgeFlow Jun 8, 2020
b9f36e3
[MIG] account_financial_risk: Migration to 13.0
MiquelRForgeFlow Jun 8, 2020
3fc2bab
[IMP] Add selection: choose which currency should be used in risk
MiquelRForgeFlow Jun 16, 2020
c9a27d6
[IMP] account_financial_risk: Add specific overpassing group
AaronHForgeFlow Oct 21, 2020
8a79ee2
[MIG] account_financial_risk: Migration to 14.0
psugne Nov 20, 2020
b27d97f
Translated using Weblate (French)
Yvesldff Mar 25, 2021
4289d79
Translated using Weblate (Dutch)
bosd Apr 23, 2021
dc916a5
[FIX] account_financial_risk: Fix tests fixing a date
pedrobaeza Jul 29, 2021
1bc6ff4
[IMP] account_financial_risk: black, isort, prettier
JoanMForgeFlow Nov 3, 2021
28f6c00
[15.0][MIG] account_financial_risk:Migration to 15.0
JoanMForgeFlow Nov 4, 2021
e13cee3
[FIX]-account-financial-risk: fixed test
JoanMForgeFlow Nov 8, 2021
11c7df0
[FIX] account_financial_risk: Show ValidationError when post multiple…
carlosdauden Sep 3, 2021
4394575
[FIX] account_financial_risk: consider include in risk_exception
MiquelRForgeFlow Nov 30, 2021
3920396
[IMP] account_financial_risk: add risk_amount_exceeded
MiquelRForgeFlow Nov 30, 2021
f054ad5
[FIX] account_financial_risk (bad migration): action_post -> post
MiquelRForgeFlow Dec 1, 2021
3b03fd9
[FIX] account_financial_risk: Remove customer_rank condition to show …
carlosdauden Dec 29, 2021
854ff30
[FIX] account_financial_risk: Don't store company_currency_id
pedrobaeza Jan 15, 2022
04e9f0f
[FIX] account_financial_risk: inherit action_post instead of _post
fredzamoabg Mar 24, 2022
23bf9d3
Translated using Weblate (French)
ClementChaumienneC2C Jul 5, 2022
4e1ac28
[FIX] account_financial_risk: issue with currenty rates.
LoisRForgeFlow Oct 4, 2022
76013ec
[IMP] account_financial_risk: Alternative to check if move post is ca…
carlosdauden Oct 17, 2022
c6663fa
Translated using Weblate (French)
ClementChaumienneC2C Oct 18, 2022
402c71c
[15.0][IMP] account_financial_risk: credit limit last modification da…
Oct 31, 2022
a47ef16
[15.0][FIX] account_financial_risk: date_credit_limit view in edition…
Nov 7, 2022
159490b
[FIX] account_financial_risk: Access error when displaying the partne…
AaronHForgeFlow Nov 11, 2022
006dbc8
[14.0][IMP] sale_financial_risk: Absolute and percentage values of re…
Aug 24, 2022
1c185ea
Translated using Weblate (Italian)
mymage Mar 30, 2023
1a70cb0
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 31, 2023
44baf74
Translated using Weblate (Italian)
mymage Apr 15, 2023
e69cd6a
[FIX] xxx_financial_risk: Inconsistent 'compute_sudo' for several com…
carlosdauden May 29, 2023
2ed8378
[MIG] account_financial_risk: Migration to 16.0
ernesto-garcia-tecnativa Jul 4, 2023
fad7543
Translated using Weblate (Spanish)
Ivorra78 Jul 6, 2023
69c40ab
[IMP] account_financial_risk: problems of partner view are fixed
ernesto-garcia-tecnativa Jul 10, 2023
41090d3
Translated using Weblate (Italian)
mymage Aug 4, 2023
70fc792
[FIX] account_financial_risk: adapt exception msg to multi record
baimont Jan 16, 2023
3b99f0e
[IMP] account_financial_risk: Remove store parameter from two fields …
carlosdauden Sep 19, 2023
7fade88
Translated using Weblate (Italian)
mymage Sep 20, 2023
8ce3a08
[IMP] account_financial_risk: Change risk tab group to new for more f…
carlosdauden Jul 23, 2021
f4a752d
[FIX] account_financial_risk: Active model not in context from header…
carlosdauden Mar 4, 2022
2321ca7
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
ef9426a
[IMP] account_financial_risk: test performance improvement
josep-tecnativa Oct 17, 2023
a6d5ee2
[FIX] account_financial_risk: Recover original behavior of include ch…
sergio-teruel Nov 22, 2023
37b6d17
[17.0][MIG] account_financial_risk: Migration to 17.0
Mat-moran Dec 14, 2023
0c84a6e
Translated using Weblate (Italian)
mymage Jan 3, 2024
a3f1e0a
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
4ee31b5
[FIX] account_financial_risk: Sudo on ir.model.data search
pedrobaeza Jul 22, 2024
569edfd
[FIX] account_financial_risk: Old group used instead of new group_acc…
carlosdauden Sep 27, 2024
e70d9de
Translated using Weblate (Italian)
mymage Sep 24, 2024
5a7d734
[IMP] account_financial_risk: pre-commit auto fixes
Dec 5, 2024
8f91e14
[MIG] account_financial_risk: Migration to 18.0
Dec 5, 2024
3eb5a07
[FIX] account_financial_risk: Display the Financial Risk page correct…
celm1990 Mar 27, 2025
3d4a4d3
[FIX] account_financial_risk: better format res_partner_view
Apr 22, 2025
d084218
[IMP] account_financial_risk: Avoid same priority than account.view_m…
carlosdauden Jan 28, 2025
131418f
Translated using Weblate (Italian)
mymage Jun 21, 2025
4107f50
[FIX] account_financial_risk: Use .sudo() to access credit_limit to a…
victoralmau Jul 4, 2025
bda6174
Translated using Weblate (Turkish)
bo-eska Jul 18, 2025
a73aa71
Translated using Weblate (Italian)
francesco-ooops Jul 25, 2025
c47c746
[IMP] account_financial_risk: improve risk remaining percentage preci…
pilarvargas-tecnativa Aug 5, 2025
f46cdb1
[IMP] account_financial_risk: Display credit information in portal view
pilarvargas-tecnativa Aug 5, 2025
23bc730
Translated using Weblate (Italian)
mymage Aug 19, 2025
ea6f7b3
[18.0][FIX] Fix access error on partner.credit_limit
tobiaszehntner Jul 22, 2025
1c7b80f
[IMP] account_financial_risk: Add risk group to credit_limit field
carlosdauden Aug 28, 2025
9808994
[IMP] account_financial_risk: make risk_remaining_percentage searchable
pilarvargas-tecnativa Aug 27, 2025
87d291c
[IMP] account_financial_risk: inheritable view to display credit info…
pilarvargas-tecnativa Aug 18, 2025
4495483
[MIG] account_financial_risk: Migration to 19.0
pablo-cort-s73 Nov 12, 2025
2c77560
Merge PR #517 into 19.0
OCA-git-bot Nov 18, 2025
bf26862
[UPD] Update account_financial_risk.pot
Nov 18, 2025
b382fb4
[BOT] post-merge updates
OCA-git-bot Nov 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ credit-control

[//]: # (addons)

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_financial_risk](account_financial_risk/) | 19.0.1.0.0 | <a href='https://github.com/carlosdauden'><img src='https://github.com/carlosdauden.png' width='32' height='32' style='border-radius:50%;' alt='carlosdauden'/></a> | Manage customer risk

[//]: # (end addons)

Expand Down
155 changes: 155 additions & 0 deletions account_financial_risk/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

======================
Account Financial Risk
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:43466cd5b6aca988aa7cfcdeeef3e10f0bb6f0037ce53289c0126a5d3d0c1a3e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
:target: https://github.com/OCA/credit-control/tree/19.0/account_financial_risk
:alt: OCA/credit-control
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/credit-control-19-0/credit-control-19-0-account_financial_risk
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Adds a new page in partner to manage its *Financial Risk*. (Only visible
for User or Manager Financial Risk groups)

If any limit is exceeded, you won't be able to confirm any of its
invoices unless you are authorized (Financial Risk Manager group). You
can click in risk amount to view amount origin.

|image1|

When a non-zero credit limit is set, the last modification date is saved
and displayed next to the credit limit.

Optionally, the credit information can be shown in the portal view for
the customer, if configured accordingly.

|image2|

.. |image1| image:: https://raw.githubusercontent.com/OCA/credit-control/19.0/account_financial_risk/static/description/financial_risk_click.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/credit-control/19.0/account_financial_risk/static/description/financial_risk_portal.png

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to User and set group User or Manager Financial Risk
2. Go to *Invoicing/Accounting > Configuration > Settings > Accounting*
3. In the *Customer Payments* section, fill *Maturity Margin* for
setting the number of days to last after the due date to consider an
invoice as unpaid.

(Optional) To display credit information in the customer portal, go to
*Invoicing > Configuration > Settings > Financial Risk* and activate
**Show credit information in portal**.

Credit information can be displayed on the portal if it is enabled
globally, and can be disabled individually for certain contacts.

Usage
=====

To use this module, you need to:

1. Go to *Invoicing/Accounting > Customers > Customers*.
2. Select an existing customer or create a new one.
3. Open the *Financial Risk* tab.
4. Set limits and choose options to compute in credit limit.
5. Go to *Invoicing/Accounting > Customers > Invoices* and create new
customer invoices.
6. Test the restriction trying to create an invoice for the partner for
an amount higher of the limit you have set.
7. Return to Customer *Financial Risk* tab and click in amount to view
origin.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20account_financial_risk%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Carlos Dauden
- Pedro M. Baeza
- Ernesto Tejeda

- Agathe Mollé <[email protected]>
- Ugne Sinkeviciene <[email protected]>
- `Ooops404 <https://www.ooops404.com>`__:

- Ilyas <[email protected]>

- `Studio73 <https://www.studio73.es>`__:

- Pablo Cortés
- Sergio Martínez

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-carlosdauden| image:: https://github.com/carlosdauden.png?size=40px
:target: https://github.com/carlosdauden
:alt: carlosdauden

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-carlosdauden|

This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/19.0/account_financial_risk>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_financial_risk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
29 changes: 29 additions & 0 deletions account_financial_risk/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2016-2018 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Account Financial Risk",
"summary": "Manage customer risk",
"version": "19.0.1.0.0",
"category": "Accounting",
"license": "AGPL-3",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["carlosdauden"],
"website": "https://github.com/OCA/credit-control",
"depends": ["contacts", "account"],
"data": [
"security/security.xml",
"security/ir.model.access.csv",
"views/account_financial_risk_view.xml",
"views/portal_templates.xml",
"views/res_config_view.xml",
"views/res_partner_view.xml",
"wizards/partner_risk_exceeded_view.xml",
],
"assets": {
"web.assets_common": [
"account_financial_risk/static/src/scss/account_financial_risk_table.scss",
],
},
"installable": True,
}
Loading