Skip to content

Conversation

@nicolas-delbovier-acsone

Ensures the purchase order is cancelled before writting the cancel_reason_id:

  1. This makes more sense.
  2. Certain integration modules, such as base_tier_validation, rely on the record being in the 'cancel' state when the write method is executed to properly skip validation tiers. Cancelling first guarantees the correct state for these integrations.

Ensures the purchase order is cancelled **before** writting the `cancel_reason_id`:
1. This makes more sense.
2. Certain integration modules, such as `base_tier_validation`, rely on the record being in the 'cancel' state when the `write` method is executed to properly skip validation tiers. Cancelling first guarantees the correct state for these integrations.
Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

Code review

@nicolas-delbovier-acsone nicolas-delbovier-acsone changed the title [FIX] purchase_cancel_reason: cancel before writing cancel reason. [16.0][FIX] purchase_cancel_reason: cancel before writing cancel reason. Nov 21, 2025
@HviorForgeFlow
Copy link
Member

/ocabot merge patch

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.

3 participants