Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 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.12 MB
Module directory on disk
Code analysis 1 migration note 3 models 2 views 0 HTTP endpoints

Description

Apply global financial discounts to sales that will be transmited to invoices and accounting.

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 2

XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_global_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…