Skip to content

[18.0][FIX] rma_sale_delivery: Use proper available carriers method#582

Merged
OCA-git-bot merged 1 commit intoOCA:18.0from
Tecnativa:18.0-fix-rma_sale_delivery
May 6, 2026
Merged

[18.0][FIX] rma_sale_delivery: Use proper available carriers method#582
OCA-git-bot merged 1 commit intoOCA:18.0from
Tecnativa:18.0-fix-rma_sale_delivery

Conversation

@pedrobaeza
Copy link
Copy Markdown
Member

We can't use the RMA one, as it doesn't exist yet. Not sure though if the sales order check is enough, or there should be something more, as this is a return.

@Tecnativa TT62250

We can't use the RMA one, as it doesn't exist yet. Not sure though if
the sales order check is enough, or there should be something more, as
this is a return.

TT62250
@pedrobaeza pedrobaeza added this to the 18.0 milestone May 4, 2026
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

carrier_model._check_company_domain(item.company_id)
)
item.available_reception_carrier_ids = (
carriers.available_carriers_rma(partner, item.order_id)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry, but I don’t understand what the error is.

This method is available at

def available_carriers_rma(self, partner, rma):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because it expects a RMA, not a sales order...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ahhh, Ok, good catch

carrier_model._check_company_domain(item.company_id)
)
item.available_reception_carrier_ids = (
carriers.available_carriers_rma(partner, item.order_id)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ahhh, Ok, good catch

@pedrobaeza
Copy link
Copy Markdown
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-582-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9265f6e into OCA:18.0 May 6, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@pedrobaeza pedrobaeza deleted the 18.0-fix-rma_sale_delivery branch May 6, 2026 07:09
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.

4 participants