Account Invoice Triple Discount
account_invoice_triple_discount · OCA/account-invoicing
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 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.18 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 account_move_line SET discount1 = discount WHERE discount != 0` - re-check the table/column names still match after upgrading. (2 occurrences in this file) 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 successive discounts on each invoice 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 |
|---|---|---|---|---|
invoice_triple_discount_form_view |
account.invoice.triple.discount.form | account.move | form | Inherits account.view_move_form |
report_invoice_document |
report_invoice_document | ir.ui.view | qweb | Inherits account.report_invoice_document |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (4)
-
discountFloatcompute='_compute_discount'digits=Nonereadonly=Truestore=Truestring='Total discount' -
discount1Floatdigits='Discount'string='Discount 1 (%)' -
discount2Floatdigits='Discount'string='Discount 2 (%)' -
discount3Floatdigits='Discount'string='Discount 3 (%)'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…