Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.31 MB
Module directory on disk
Code analysis 1 migration note 6 models 3 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…