Sale Discount Display Amount
sale_discount_display_amount · OCA/sale-workflow
-
Security25/25No findings
-
Activity12/25Last human commit 21 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 9 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
display_discount_with_taxBooleanstring='Show the Discount with TAX' -
report_total_without_discountBoolean
No public methods.
-
display_discount_with_taxBooleanhelp='Check this field to show the Discount with TAX'readonly=Falserelated='company_id.display_discount_with_tax'string='Show the Discount with TAX' -
report_total_without_discountBooleanhelp='Display "Total without discount" in report'readonly=Falserelated='company_id.report_total_without_discount'string='Report Total Without Discount'
No public methods.
-
discount_subtotalMonetarycompute='_compute_discount_total'currency_field='currency_id'name='Discount Subtotal'store=True -
discount_totalMonetarycompute='_compute_discount_total'currency_field='currency_id'name='Discount total'store=True -
display_discount_with_taxBooleanhelp='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_discountMonetarycompute='_compute_discount_total'currency_field='currency_id'name='Subtotal Without Discount'store=True -
price_total_no_discountMonetarycompute='_compute_discount_total'currency_field='currency_id'name='Total Without Discount'store=True
No public methods.
-
discount_subtotalMonetarycompute='_compute_amount'precompute=Truestore=True -
discount_totalMonetarycompute='_compute_amount'precompute=Truestore=True -
price_subtotal_no_discountMonetarycompute='_compute_amount'precompute=Truestore=Truestring='Subtotal Without Discount' -
price_total_no_discountMonetarycompute='_compute_amount'precompute=Truestore=Truestring='Total Without Discount'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…