Repository
OCA/credit-control · module folder · Try on Runboat
Module version
Category
Sales Management
Folder size
0.31 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/credit-control
Last tracking update
2026-08-19 17:41:07
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci, psugne
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Extends Partner Financial Risk to manage sales orders.

Adds a new risk amount field in sale order line to compute risk based on
the difference between ordered quantity (or delivered in some cases) and
invoiced quantity.

If any limit is exceed the partner gets forbidden to confirm sale
orders.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
financial_risk_sale_order_line_pivot_view Account financial risk sale pivot view sale.order.line pivot New
res_config_settings_view_form res.config.settings.view.form.inherit.credit.control res.config.settings form Inherits account_financial_risk.res_config_settings_view_form
res_partner_view_risk res.partner.view.risk res.partner Inherits account_financial_risk.res_partner_view_risk
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • allow_overrisk_sale_confirmation Boolean
    help='If is set always allow the confirmation of sale orders.' string='Allow sale order confirmation over the risk'
Public methods (0)

No public methods.

New fields (2)
  • allow_overrisk_sale_confirmation Boolean
    readonly=False related='company_id.allow_overrisk_sale_confirmation'
  • include_risk_sale_order_done Boolean
    config_parameter='sale_financial_risk.include_risk_sale_order_done' args: 'Include locked sale orders into risk calculation'
Public methods (0)

No public methods.

New fields (3)
  • risk_sale_order Monetary
    compute='_compute_risk_sale_order' compute_sudo=True currency_field='risk_currency_id' help='Total not invoiced of sales orders in Sale Order state' string='Total Sales Orders Not Invoiced'
  • risk_sale_order_include Boolean
    help='Full risk computation' string='Include Sales Orders'
  • risk_sale_order_limit Monetary
    currency_field='risk_currency_id' help='Set 0 if it is not locked' string='Limit Sales Orders'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • action_confirm(self)
  • evaluate_risk_message(self, partner)

New fields (3)
  • company_currency_id Many2one → res.currency
    comodel_name='res.currency' readonly=True related='company_id.currency_id' string='Company Currency'
  • risk_amount Monetary
    compute='_compute_risk_amount' compute_sudo=True currency_field='company_currency_id' store=True
  • risk_partner_id Many2one
    index=True related='order_id.partner_invoice_id.commercial_partner_id' store=True string='Commercial Entity'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…