It appears that for services the delivery status does not get updated. I am guessing that it is updated from the shipper but there is no shipper for services., We just mark the SO as delivered. On the Open SO report (all SO's not cancelled and not fully delivered) every one of the service SO's stay on it. Is there some way to manually change this field or have it update directly ffrom the SO and not a shipper?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Projekty
- MRP
This question has been flagged
Hi,
The delivery status in Odoo is typically tied to the delivery orders (shipping) generated for shippable products. Since services don't involve physical shipments.
Refer to the code:
from odoo import models
class SaleOrder(models.Model):
_inherit = 'sale.order'
def _compute_delivery_status(self):
super()._compute_delivery_status()
for order in self:
# If order ONLY contains services → mark as delivered
if all(line.product_id.type == 'service' for line in order.order_line):
order.delivery_status = 'delivered'
Hope it helps.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
|
0
kvě 19
|
3214 | ||
|
|
0
zář 25
|
771 | ||
|
|
4
čvc 25
|
3410 | ||
|
|
0
srp 24
|
1943 | ||
|
|
1
čvn 24
|
2946 |