Delivery costs in purchases
delivery_purchase · OCA/delivery-carrier
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 7 Odoo series since 13.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.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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → delivery.carriercomodel_name='delivery.carrier'string='Delivery Method' -
delivery_priceFloatcompute='_compute_delivery_price'readonly=Falsestore=True
-
onchange_partner_id_delivery_purchase(self)@api.onchange('partner_id')
New fields (3)
-
delivery_picking_orig_idMany2one → stock.pickingcomodel_name='stock.picking'string='Origin picking (delivery)' -
is_deliveryBooleandefault=Falsestring='Is a Delivery' -
qty_to_invoiceFloatrecursive=True
No public methods.
New fields (0)
No new fields.
Public methods (1)-
purchase_send_to_shipper(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…