mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_request: set stock request order state to done when partially delivered
This commit is contained in:
@@ -245,7 +245,9 @@ class StockRequestOrder(models.Model):
|
||||
|
||||
def check_done(self):
|
||||
for rec in self:
|
||||
if not rec.stock_request_ids.filtered(lambda r: r.state != "done"):
|
||||
if not rec.stock_request_ids.filtered(
|
||||
lambda r: r.state not in ["done", "cancel"]
|
||||
):
|
||||
rec.action_done()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user