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

Description

This odoo module add delivery state on the sale order.

Delivery state is computed based on qty_delivered field on sale order lines.

This is usefull for other modules to provide the state of delivery. The state of the sale order can be forced to fully delivered in case some quantities were cancelled by the customer and you consider you have nothing more to deliver.

Sale order lines can have products or services, as long as the field qty_delivered is set, it will trigger the computation of delivery state.

Sale order lines with the Skip Delivery State field set to True will be ignored when computing the delivery state. This field is automatically set depending on the field Sales > Configuration > Quotations & Orders > Skip Service products for Sale Delivery State. If set to True, the field Skip Delivery State in sale order lines containing service products will be automatically set to True, but it can manually changed.

This module also works with delivery.carrier fees that are added as a sale order line. Thoses line are special as they will never be considered delivered. Delivery fees lines are ignored in the computation of the delivery state.

When the 'sale_stock' module is installed, the glue module 'sale_stock_delivery_state' should also be installed; this module is designed to override the compute method of the delivery status field from 'sale_stock'.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_stock_delivery_state

Code analysis

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

Views touched 4

XML IDNameModelTypeStatus
sale_delivery_state_res_config_settings_view_form sale.delivery.state.res.config.settings.view.form res.config.settings form Inherits sale.res_config_settings_view_form
sale_order_view_search_inherit_sale_inherit_delivery_status sale.order.search sale.order search Inherits sale.sale_order_view_search_inherit_sale
view_order_form_inherit_delivery_state sale.order.form.sale.stock sale.order form Inherits sale.view_order_form
view_order_tree_inherit_delivery_status sale.order.tree sale.order tree Inherits sale.view_order_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (1)
  • skip_service_sale_delivery_state Boolean
    string='Skip Service products for Sale Delivery State'
Public methods (0)

No public methods.

New fields (1)
  • skip_service_sale_delivery_state Boolean
    readonly=False related='company_id.skip_service_sale_delivery_state' string='Skip Service products for Sale Delivery State'
Public methods (0)

No public methods.

New fields (2)
  • delivery_status Selection
    compute='_compute_oca_delivery_status' selection=[('pending', 'Not Delivered'), ('started', 'Started'), ('partial', 'Partially Delivered'), ('full', 'Fully Delivered')] store=True
  • force_delivery_state Boolean
    help='Allow to enforce done state of delivery, for instance if some quantities were cancelled'
Public methods (2)
  • action_force_delivery_state(self)
  • action_unforce_delivery_state(self)

New fields (1)
  • skip_sale_delivery_state Boolean
    compute='_compute_skip_sale_delivery_state' readonly=False store=True string='Skip Delivery State'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…