Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 11 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
delivery_purchase_multi_destination

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
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_ids One2many → delivery.carrier
    comodel_name='delivery.carrier' inverse_name='parent_id' string='Destination grid'
  • destination_type Selection
    default='one' required=True selection=[('one', 'One destination'), ('multi', 'Multiple destinations')]
  • parent_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' ondelete='cascade' string='Parent carrier'
Public methods (3)
  • 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…