Skip to content

[17.0][OU-FIX] sale: Order state + locked#4747

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
Tecnativa:17.0-ou_fix-sale
Feb 19, 2025
Merged

[17.0][OU-FIX] sale: Order state + locked#4747
OCA-git-bot merged 1 commit into
OCA:17.0from
Tecnativa:17.0-ou_fix-sale

Conversation

@pedrobaeza

Copy link
Copy Markdown
Member
  • Preserve a copy of the column state for any future need, as we modify its values.
  • We should only set as locked orders in "done" state. The locking group doesn't matter.

@Tecnativa TT49328

@pedrobaeza pedrobaeza added this to the 17.0 milestone Feb 19, 2025
- Preserve a copy of the column `state` for any future need, as we
  modify its values.
- We should only set as locked orders in "done" state. The locking
  group doesn't matter.
@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

The locking group doesn't matter

Why?

@pedrobaeza

Copy link
Copy Markdown
Member Author

Because that group is only for auto-locking when confirming the sales order or to show the buttons, but the only important thing now is the current order state. You may have the locking group, but have unlocked a specific sales order, or you may not have now the locking group, but lock in the past some orders. Simply state='sale' means locked=True.

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-4747-by-MiquelRForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 66e8078 into OCA:17.0 Feb 19, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 66e8078. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 17.0-ou_fix-sale branch February 19, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants