Purchase Cancel Quantity
purchase_cancel_qty · OCA/purchase-workflow
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Only bot commits
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.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.02 MB
Module directory on disk
Code analysis
4 migration notes
2 models
2 views
0 HTTP endpoints
Migration considerations
PurchaseOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourcePurchaseOrderLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourcepurchase.order.line— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: cancelled_qty. 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. "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
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 |
|---|---|---|---|---|
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