Skip to Content

Welcome!

human made "AI" (advises & inputs) forum by Odoo professionals, experts and enthusiasts challenging real use cases with standard solutions!

-> solutions should be applicable for Odoo community or online (at the limit with Studio), all without custom modules.

This question has been flagged
1 Reply
32 Views

many times suppliers change the delivery dates of different products within a single order, however, changes made to the expected arrival dates in purchase orders do not reflect in the scheduled dates of the corresponding product receipts.
how to solve this?

Avatar
Discard
Author

Create the following automation to update scheduled dates based on expected arrival changes:

for record in records:
if record.date_planned:
# Only update the stock moves linked to this specific PO line
moves = record.move_ids.filtered(lambda m: m.state not in ['done', 'cancel'])
if moves:
moves.write({'date': record.date_planned})


Avatar
Discard
Related Posts Replies Views Activity
1
Jun 26
36
1
Sep 25
214
1
Aug 25
155
1
Aug 25
156
1
Aug 25
141