TIP: You can type at any time to perform a new search.
Account Invoice Triple Discount
account_invoice_triple_discount · OCA/account-invoicing
Security findings
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. migration-raw-sql-write · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move_line SET discount = 100 * ( 1 - ( (100 - COALESCE(discount1, 0.0)) / 100 * (100 - COALESCE(discount2, 0.0)) / 100 * (100 - COALESCE(discount3, 0.0)) / 100 ) );` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/account-invoicing · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Accounting & Finance
- Folder size
- 0.18 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/account-invoicing
- Last tracking update
- 2026-08-07 09:06:23
- Authors
- Odoo Community Association (OCA), GRAP, Tecnativa, QubiQ
- Maintainers
- Odoo Community Association (OCA), GRAP, Tecnativa, QubiQ
- Committers
- Weblate, Franco Leyes, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- purchase_triple_discount
- Description
This module allows to have three successive discounts on each invoice line.
Code Analysis
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…