Skip to content

Conversation

DavidJForgeFlow
Copy link
Contributor

Forward port of #2759 to 18.0

When the PO is already confirmed and you add a new line with a different date than the existing one, the new receipt is created but the old receipt and move have the dates updated with no reason. The call on the method _update_picking_from_group_key is the method that is messing it up as it updates the previous picking. Also ensures that date is updated in the stock.moves when the value changes in purchase.order.line
Remove the method _update_picking_from_group_key as it is removed in the parent module.
@DavidJForgeFlow DavidJForgeFlow changed the title [17.0][FIX] purchase_delivery_split_date [18.0][FIX] purchase_delivery_split_date Sep 15, 2025
class PurchaseOrder(models.Model):
_inherit = "purchase.order"

def _check_split_pickings(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidJForgeFlow You are reading this that was remoeved in the migration, can you check if this is correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants