TIP: You can type at any time to perform a new search.
Purchase Cancel Quantity
purchase_cancel_qty · OCA/purchase-workflow
Security findings
Migration considerations
purchase.order.line.cancelled_qty— Field 'cancelled_qty' on 'purchase.order.line' uses the deprecated `track_visibility` kwarg: renamed to `tracking` in Odoo 13.0. migration-track-visibility- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE purchase_order_line SET ordered_qty = product_qty WHERE state = 'purchase'` - 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
- Uncategorized
- Folder size
- 0.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/purchase-workflow
- Last tracking update
- 2026-08-07 07:17:49
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- OCA-git-bot, oca-travis
Code Analysis
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_form_view |
purchase.order.form (in purchase_cancel_qty) | purchase.order | form | Inherits purchase.purchase_order_form |
purchase_order_line_tree_view |
purchase.order.line.tree (in purchase_cancel_qty) | purchase.order.line | tree | Inherits purchase.purchase_order_line_tree |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (2)-
button_approve(self, force=False)@api.multi -
button_draft(self)@api.multi
New fields (3)
-
cancelled_qtyFloatcopy=Falsedigits=dp.get_precision('Product Unit of Measure')inverse='_inverse_cancelled_qty'readonly=Truestates=CANCELLED_QTY_EDITABLE_STATESstring='Cancelled Qty'track_visibility='onchange' -
ordered_qtyFloatcopy=Falsedigits=dp.get_precision('Product Unit of Measure')readonly=Truestring='Ordered Qty' -
product_qtyFloatstates=PRODUCT_QTY_READONLY_STATES
-
create(self, values)@api.model