Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 21 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 9.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.09 MB
Module directory on disk
Code analysis 0 migration notes 4 models 5 views 0 HTTP endpoints

Description

In standard Odoo only display the rate of the discount applied, never the amount. It could be great to be able to tell the customer how much he spares. This is the goal of this addons, it will show on a sale order the total without the discount and the value of the discount. You can choose if you want the discount on the Total with or the Total without TAX.

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 5

XML IDNameModelTypeStatus
res_config_settings_view_form_display_discount_with_tax res.config.settings.view.form.display.discount res.config.settings form Inherits base.res_config_settings_view_form
res_config_settings_view_form_report_total_without_discount res.config.settings.view.form.report.total.without.discount res.config.settings form Inherits sale.res_config_settings_view_form
sale_discount_display_amount_document sale_discount_display_amount_document ir.ui.view qweb Inherits sale.report_saleorder_document
sale_order_view_form_display_discount sale.order form Inherits sale.view_order_form
view_order_form sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (2)
  • display_discount_with_tax Boolean
    string='Show the Discount with TAX'
  • report_total_without_discount Boolean
Public methods (0)

No public methods.

New fields (2)
  • display_discount_with_tax Boolean
    help='Check this field to show the Discount with TAX' readonly=False related='company_id.display_discount_with_tax' string='Show the Discount with TAX'
  • report_total_without_discount Boolean
    help='Display "Total without discount" in report' readonly=False related='company_id.report_total_without_discount' string='Report Total Without Discount'
Public methods (0)

No public methods.

New fields (5)
  • discount_subtotal Monetary
    compute='_compute_discount_total' currency_field='currency_id' name='Discount Subtotal' store=True
  • discount_total Monetary
    compute='_compute_discount_total' currency_field='currency_id' name='Discount total' store=True
  • display_discount_with_tax Boolean
    help='Check this field to show the Discount with TAX' name='Show the Discount with TAX' related='company_id.display_discount_with_tax'
  • price_subtotal_no_discount Monetary
    compute='_compute_discount_total' currency_field='currency_id' name='Subtotal Without Discount' store=True
  • price_total_no_discount Monetary
    compute='_compute_discount_total' currency_field='currency_id' name='Total Without Discount' store=True
Public methods (0)

No public methods.

New fields (4)
  • discount_subtotal Monetary
    compute='_compute_amount' precompute=True store=True
  • discount_total Monetary
    compute='_compute_amount' precompute=True store=True
  • price_subtotal_no_discount Monetary
    compute='_compute_amount' precompute=True store=True string='Subtotal Without Discount'
  • price_total_no_discount Monetary
    compute='_compute_amount' precompute=True store=True string='Total Without Discount'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…