-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 9 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sale_order_line sol SET risk_partner_id = p.commercial_partner_id FROM sale_order so LEFT JOIN res_partner p ON p.id = so.partner_invoice_id WHERE so.id = sol.order_id and sol.risk_partner_id IS DISTINCT FROM p.commercial_partner_id;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
No new fields.
Public methods (0)No public methods.
-
allow_overrisk_sale_confirmationBooleanhelp='If is set always allow the confirmation of sale orders.'string='Allow sale order confirmation over the risk'
No public methods.
-
allow_overrisk_sale_confirmationBooleanreadonly=Falserelated='company_id.allow_overrisk_sale_confirmation' -
include_risk_sale_order_doneBooleanconfig_parameter='sale_financial_risk.include_risk_sale_order_done' args: 'Include locked sale orders into risk calculation'
No public methods.
-
risk_sale_orderMonetarycompute='_compute_risk_sale_order'compute_sudo=Truecurrency_field='risk_currency_id'help='Total not invoiced of sales orders in Sale Order state'string='Total Sales Orders Not Invoiced' -
risk_sale_order_includeBooleanhelp='Full risk computation'string='Include Sales Orders' -
risk_sale_order_limitMonetarycurrency_field='risk_currency_id'help='Set 0 if it is not locked'string='Limit Sales Orders'
No public methods.
No new fields.
Public methods (2)-
action_confirm(self) -
evaluate_risk_message(self, partner)
-
company_currency_idMany2one → res.currencycomodel_name='res.currency'readonly=Truerelated='company_id.currency_id'string='Company Currency' -
risk_amountMonetarycompute='_compute_risk_amount'compute_sudo=Truecurrency_field='company_currency_id'store=True -
risk_partner_idMany2oneindex=Truerelated='order_id.partner_invoice_id.commercial_partner_id'store=Truestring='Commercial Entity'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…