Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, Lukas Tran
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

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…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
125 days ago
Last activity
59 days ago
Repository
OCA/sale-workflow
Pull request
[19.0][MIG] sale_discount_display_amount: Migration to 19.0 (#4284)