Multiple destinations for the same delivery method
delivery_multi_destination · OCA/delivery-carrier
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 11 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.1 MB
Module directory on disk
Code analysis
0 migration notes
1 model
2 views
0 HTTP endpoints
Description
This module allows to set different price rules depending on the destination.
This module restores the concept of delivery grid, reusing the same model for nesting several "children" delivery methods, one per possible destination. It has been designed to reuse all possible extensions to the base delivery, without the need to create a glue module for having multiple destinations.
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 |
|---|---|---|---|---|
view_delivery_carrier_form |
delivery.carrier | form | Inherits delivery.view_delivery_carrier_form | |
view_delivery_carrier_list |
delivery.carrier | list | Inherits delivery.view_delivery_carrier_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (3)
-
child_idsOne2many → delivery.carriercomodel_name='delivery.carrier'inverse_name='parent_id'string='Destination grid' -
destination_typeSelectiondefault='one'required=Trueselection=[('one', 'One destination'), ('multi', 'Multiple destinations')] -
parent_idMany2one → delivery.carriercomodel_name='delivery.carrier'ondelete='cascade'string='Parent carrier'
-
available_carriers(self, partner, order)If the carrier is multi, we test the availability on children. -
rate_shipment(self, order)We have to override this method for getting the proper price according destination on sales orders. -
send_shipping(self, pickings)We have to override this method for redirecting the result to the proper "child" carrier.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…