TIP: You can type at any time to perform a new search.
Purchase Order Triple Discount
purchase_triple_discount · OCA/purchase-workflow
Security findings
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE purchase_order_line upd SET discount1=pol.discount FROM (SELECT * FROM purchase_order_line WHERE discount IS NOT NULL AND discount1 IS NULL AND discount2 IS NULL AND discount3 IS NULL) as pol WHERE upd.id = pol.id` - 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 product_supplierinfo upd SET discount1=psi.discount FROM (SELECT * FROM product_supplierinfo WHERE discount IS NOT NULL AND discount1 IS NULL AND discount2 IS NULL AND discount3 IS NULL) as psi WHERE upd.id = psi.id` - 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/purchase-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Purchase Management
- Folder size
- 0.11 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/purchase-workflow
- Last tracking update
- 2026-09-29 01:29:58
- Authors
- Odoo Community Association (OCA), GRAP, Tecnativa
- Maintainers
- Odoo Community Association (OCA), GRAP, Tecnativa
- Committers
- OCA-git-bot, oca-ci, arantxa-s73, Vicent-S73
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module allows to have three successive discounts on every purchase order line.
Code Analysis
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_supplierinfo_form_view |
product.supplierinfo | form | Inherits product.product_supplierinfo_form_view | |
product_supplierinfo_tree_view |
product.supplierinfo | tree | Inherits product.product_supplierinfo_tree_view | |
purchase_order_triple_discount_form_view |
purchase.order.triple.discount.form | purchase.order | form | Inherits purchase.purchase_order_form |
view_partner_property_form_inherit_triple_discount |
res.partner | form | Inherits purchase.view_partner_property_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (5)
New fields (0)
No new fields.
Public methods (1)-
default_get(self, fields_list)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (4)
-
discountFloatcompute='_compute_discount'store=True -
discount1Floatdigits='Discount'readonly=Falsestring='Disc. 1 (%)' -
discount2Floatdigits='Discount'readonly=Falsestring='Disc. 2 (%)' -
discount3Floatdigits='Discount'readonly=Falsestring='Disc. 3 (%)'
No public methods.
New fields (3)
-
default_supplierinfo_discount1Floatdigits='Discount'help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.'string='Default Supplier Discount 1 (%)' -
default_supplierinfo_discount2Floatdigits='Discount'help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.'string='Default Supplier Discount 2 (%)' -
default_supplierinfo_discount3Floatdigits='Discount'help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.'string='Default Supplier Discount 3 (%)'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…