Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.1
Category
Product
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 09:06:23
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
GitHub, OCA-git-bot, oca-ci, Frédéric GRALL
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_stock_delivery_state
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'.

Code Analysis

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…