Sale Triple Discount
sale_triple_discount · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 9 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.11 MB
Module directory on disk
Code analysis
1 migration note
2 models
2 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sale_order_line SET discount1 = discount WHERE discount != 0` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows to have three discounts on every sale order line.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
report_saleorder_document_triple_discount |
report_saleorder_document_triple_discount | ir.ui.view | qweb | Inherits sale.report_saleorder_document |
sale_order_triple_discount_form_view |
sale.order.triple.discount.form | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (1)-
action_apply_discount(self)
New fields (3)
-
discountFloatcompute='_compute_discount'compute_sudo=Truedigits=Noneprecompute=Truestore=Truestring='Total Disc (%)' -
discount1Floatcompute='_compute_discount1'compute_sudo=Truedigits='Discount'precompute=Truereadonly=Falsestore=Truestring='Disc. 1 (%)' -
discounting_typeSelectiondefault='multiplicative'help='Specifies whether discounts should be additive or multiplicative.\nAdditive discounts are summed first and then applied.\nMultiplicative discounts are applied sequentially.\nMultiplicative discounts are default'required=Trueselection=[('additive', 'Additive'), ('multiplicative', 'Multiplicative')]
-
create(self, vals_list)@api.model_create_multi
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…