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
184 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
Aug 26
96
1
Aug 26
79
1
Aug 26
264
1
Aug 26
196
1
Aug 26
92