Purchase - Transport Addresses
purchase_transport_multi_address · OCA/stock-logistics-transport
Health
63/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by20/254 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
4
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.03 MB
Module directory on disk
Code analysis
3 migration notes
2 models
1 view
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. (2 methods) migration-api-multi-one · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) 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
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- purchase_delivery_address, purchase_origin_address, purchase_requisition_transport_multi_address, stock_shipment_management
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_form |
purchase_order_form | purchase.order | form | Inherits purchase.purchase_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (1)-
create_procurement_purchase_order(self, procurement, po_vals, line_vals)@api.model
New fields (2)
-
consignee_idMany2one → res.partnerdomain=[('is_consignee', '=', True)]help='The person to whom the shipment is to be delivered.' args: 'res.partner', 'Consignee' -
origin_address_idMany2one → res.partnerargs: 'res.partner', 'Origin Address'
-
action_picking_create(self)@api.multi -
new_onchange_dest_address_id(self)@api.onchange('dest_address_id')Find a picking type from the address If the address can be an internal warehouse or a customer, the picking type is changed accordingly. This intentionally overrides the original without super, and should be consistent with the module purchase_requisition_transport_multi_address. A similar logic to choose the picking type is used in the module framework_agreement_sourcing in github.com/OCA/vertical-ngo. -
onchange_partner_id(self, partner_id)@api.multi -
onchange_picking_type_id(self)@api.onchange('picking_type_id')If the picking type has an address, use it. Do not empty the address none is found, because that gives a short circuit with the onchange of the address.
Loading…
Loading…