Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 9 Odoo series since 10.0

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

Security findings
Grave / minor (static analysis)
Required by
1
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.19 MB
Module directory on disk
Code analysis 0 migration notes 5 models 7 views 0 HTTP endpoints

Description

This module adds a new tab in the partner form to introduce risk insurance information.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
partner_risk_insurance_product_sticker_invoice_report

Code analysis

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

Views touched 7

XML IDNameModelTypeStatus
credit_policy_company_view credit.policy.company.form credit.policy.company form New
invoice_risk_insurance_form invoice.risk.insurance.form partner.risk.insurance.wizard form New
report_invoice_risk_insurance report_invoice_risk_insurance ir.ui.view qweb New
report_invoice_risk_insurance_document report_invoice_risk_insurance_document ir.ui.view qweb New
view_account_invoice_filter account.invoice.select account.move Inherits account.view_account_invoice_filter
view_move_form account.move.form account.move form Inherits account.view_move_form
view_partner_form res.partner.form.risk_insurance res.partner form Inherits base.view_partner_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (3)
  • credit_policy_company_id Many2one → credit.policy.company
    comodel_name='credit.policy.company' compute='_compute_credit_policy' help='The insurance company that insures the invoices of the partner.' ondelete='restrict' readonly=True store=True string='Insurance Company'
  • credit_policy_state_id Many2one → credit.policy.state
    comodel_name='credit.policy.state' compute='_compute_credit_policy' domain="[('insure_invoices', '=', True)]" help='The insurance policy that insures the invoices of the partner.' ondelete='restrict' readonly=True store=True string='Insurance Policy'
  • insured_with_credit_policy Boolean
    compute='_compute_insured_with_credit_policy' help='Indicates if the invoice is insured by a credit policy.' readonly=False store=True string='Insured by a Credit Policy'
Public methods (1)
  • onchange_insured_with_credit_policy(self)
    @api.onchange('insured_with_credit_policy')
    Check if the partner has a credit policy to insure invoices and raise an error if not .

New fields (3)
  • active Boolean
    default=True
  • name Char
    required=True
  • partner_id Many2one → res.partner
    comodel_name='res.partner' domain="[('is_company', '=', True)]" ondelete='restrict' string='Company'
Public methods (0)

No public methods.

New fields (3)
  • active Boolean
    default=True
  • insure_invoices Boolean
    help='If checked, the invoices created when the partner has this state will be marked as insured'
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (3)
  • date_from Date
    default=fields.Date.context_today required=True string='From'
  • date_to Date
    default=fields.Date.context_today required=True string='To'
  • only_unpaid Boolean
    help='If check, includes only invoices in state not paid'
Public methods (2)
  • action_print_report(self)
  • get_moves_domain(self)

New fields (11)
  • company_credit_limit Float
    compute='_compute_company_credit_limit' groups='account.group_account_invoice,account.group_account_readonly' help='Calculated as the Total minus Insured credit limits, reflecting the credit limit the company is willing to offer to the client, excluding the insured portion.'
  • credit_limit Float
    tracking=True
  • credit_policy_company_id Many2one → credit.policy.company
    comodel_name='credit.policy.company' copy=False ondelete='restrict' string='Credit Policy Company'
  • credit_policy_insure_invoices Boolean
    copy=False related='credit_policy_state_id.insure_invoices' store=False string='Insure Invoices'
  • credit_policy_state_id Many2one → credit.policy.state
    comodel_name='credit.policy.state' copy=False ondelete='restrict' string='Policy State'
  • insurance_credit_limit Float
    copy=False groups='account.group_account_invoice,account.group_account_readonly' help='The portion of credit that is covered by insurance, set by the user. It represents the amount of credit that an insurance policy guarantees.' tracking=True args: 'Insured credit limit'
  • risk_insurance_code Char
    copy=False help='Code assigned to this partner by the risk insurance company.' args: 'Insurance Code'
  • risk_insurance_code_2 Char
    copy=False help='Secondary code assigned to this partner by the risk insurance company.' args: 'Insurance Code 2'
  • risk_insurance_coverage_percent Float
    copy=False groups='account.group_account_invoice,account.group_account_readonly' help='Percentage of the credit that is covered by the insurance.' args: 'Insurance coverage (%)'
  • risk_insurance_grant_date Date
    copy=False help='Date when the insurance was granted by the insurance company.' args: 'Insurance Grant Date'
  • risk_insurance_requested Boolean
    copy=False help='Mark this field if an insurance was requested for the credit of this partner.' args: 'Insurance Requested'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…