Skip to content

[18.0][FIX] rma: Fix can_be_replaced value#588

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-rma-can_be_replaced
Jun 3, 2026
Merged

[18.0][FIX] rma: Fix can_be_replaced value#588
OCA-git-bot merged 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-rma-can_be_replaced

Conversation

@victoralmau
Copy link
Copy Markdown
Member

Fix can_be_replaced value

Please @pedrobaeza and @carlos-lopez-tecnativa can you review it?

@Tecnativa

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @chienandalu, @pedrobaeza,
some modules you are maintaining are being modified, check this out!

Copy link
Copy Markdown

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

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

I think you need to add a bit more context to explain the change or provide a real use case. Does this change come from a customer-specific need, or is it part of a general requirement/flow?

@victoralmau
Copy link
Copy Markdown
Member Author

This change is not based on a customer requirement; it is simply intended to ensure consistency:

  • If the RMA is in the “Awaiting Replacement” status (the replacement has already been generated), the “Replace” button should not appear, and it should not be possible to create a new one.
  • If the RMA is in the “Replaced” status (the replacement has already been generated and validated), the ‘Replace’ button should not appear, and it should not be possible to create a new one; the process is already “completed.”

@pedrobaeza pedrobaeza added this to the 18.0 milestone May 26, 2026
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Do you know any reason why it was that way before?

@victoralmau
Copy link
Copy Markdown
Member Author

No, I don't know why it's like that right now; maybe someone can explain it to us.

Copy link
Copy Markdown

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-588-by-pedrobaeza-bump-patch, awaiting test results.

@pedrobaeza
Copy link
Copy Markdown
Member

@sbejaoui this change makes sense, but don't know if there's any of your flows that require the previous condition.

@OCA-git-bot OCA-git-bot merged commit 352f8c4 into OCA:18.0 Jun 3, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@pedrobaeza pedrobaeza deleted the 18.0-fix-rma-can_be_replaced branch June 3, 2026 06:44
Copy link
Copy Markdown
Contributor

@sbejaoui sbejaoui left a comment

Choose a reason for hiding this comment

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

LGTM thanks

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.

6 participants