Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 7 Odoo series since 13.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.08 MB
Module directory on disk
Code analysis 0 migration notes 4 models 2 views 0 HTTP endpoints

Description

This module allows to use delivery methods defined in delivery module to calculate purchase delivery costs.

It reverses destinations in delivery pricelists to use them as sources when applying the delivery method to purchases.

Dependencies

Code analysis

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

Views touched 2

XML IDNameModelTypeStatus
purchase_order_form_carrier purchase.order.form.carrier purchase.order form Inherits purchase.purchase_order_form
view_picking_withcarrier_out_form delivery.stock.picking_withcarrier.form.view stock.picking form Inherits stock_delivery.view_picking_withcarrier_out_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (0)

No new fields.

Public methods (6)
  • purchase_base_on_rule_rate_shipment(self, order)
  • purchase_base_on_rule_send_shipping(self, pickings)
  • purchase_fixed_rate_shipment(self, order)
  • purchase_fixed_send_shipping(self, pickings)
  • purchase_rate_shipment(self, order)
    Compute the price of the order shipment :param order: record of purchase.order :return dict: {'success': boolean, 'price': a float, 'error_message': a string containing an error message, 'warning_message': a string containing a warning message}
  • purchase_send_shipping(self, pickings)
    Send the package to the service provider :param pickings: A recordset of pickings :return list: A list of dictionaries (one per picking) containing of the form:: { 'exact_price': price, 'tracking_number': number }

New fields (2)
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' string='Delivery Method'
  • delivery_price Float
    compute='_compute_delivery_price' readonly=False store=True
Public methods (1)
  • onchange_partner_id_delivery_purchase(self)
    @api.onchange('partner_id')

New fields (3)
  • delivery_picking_orig_id Many2one → stock.picking
    comodel_name='stock.picking' string='Origin picking (delivery)'
  • is_delivery Boolean
    default=False string='Is a Delivery'
  • qty_to_invoice Float
    recursive=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • purchase_send_to_shipper(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…