Purchase Group Orders by Shop and Carrier
purchase_group_orders · OCA/purchase-workflow
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 121 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 6.1
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
3 migration notes
3 models
2 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
procurement_order— Class 'procurement_order' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) (3 occurrences in this file) migration-openerp-import · 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
Only merge PO with the same shop and carrier.
This eases the warehouse managements as the incoming pickings are grouped in a more convenient way.
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_shop_carrier |
purchase.order.form | purchase.order | form | Inherits purchase.purchase_order_form |
view_purchase_order_group_shop_carrier |
Merger Purchase Orders | purchase.order.group | form | Inherits purchase.view_purchase_order_group |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
create_procurement_purchase_order(self, cr, uid, procurement, po_vals, line_vals, context=None)Create the purchase order from the procurement, using the provided field values, after adding the given purchase order line in the purchase order. :params procurement: the procurement object generating the purchase order :params dict po_vals: field values for the new purchase order (the ``order_line`` field will be overwritten with one single line, as passed in ``line_vals``). :params dict line_vals: field values of the single purchase order line that the purchase order will contain. :return: id of the newly created purchase order :rtype: int
New fields (0)
No new fields.
Public methods (1)-
do_merge(self, cr, uid, ids, context=None)To merge similar type of purchase orders. Orders will only be merged if: * Purchase Orders are in draft * Purchase Orders belong to the same partner * Purchase Orders have same stock location, same pricelist * Purchase Orders have the same shop and the same carrier (NEW in this module) Lines will only be merged if: * Order lines are exactly the same except for the quantity and unit
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…