Skip to content

[18.0][IMP] rma_lot: Add quantity serial number validation when replace/return process#587

Open
victoralmau wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-imp-rma_lot-TT62586
Open

[18.0][IMP] rma_lot: Add quantity serial number validation when replace/return process#587
victoralmau wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-imp-rma_lot-TT62586

Conversation

@victoralmau

@victoralmau victoralmau commented May 19, 2026

Copy link
Copy Markdown
Member

Add quantity serial number validation when replace/return process

Similar to OCA/sale-workflow#4336

Please @pedrobaeza and @pilarvargas-tecnativa can you review it?

@Tecnativa TT62586

@pedrobaeza pedrobaeza added this to the 18.0 milestone May 19, 2026
@victoralmau victoralmau force-pushed the 18.0-imp-rma_lot-TT62586 branch from 112d577 to fd8e8cc Compare June 1, 2026 11:53
@pedrobaeza pedrobaeza requested a review from sbejaoui June 1, 2026 13:24
@victoralmau victoralmau force-pushed the 18.0-imp-rma_lot-TT62586 branch 2 times, most recently from c88c643 to 4aef22a Compare June 4, 2026 11:23
@victoralmau victoralmau force-pushed the 18.0-imp-rma_lot-TT62586 branch from 4aef22a to 903c7ab Compare June 12, 2026 12:25
@victoralmau victoralmau marked this pull request as ready for review June 16, 2026 12:17
@victoralmau victoralmau changed the title [18.0][WIP] rma_lot: Add quantity serial number validation when replace/return process [18.0][IMP] rma_lot: Add quantity serial number validation when replace/return process Jun 16, 2026
@victoralmau

Copy link
Copy Markdown
Member Author

Ping @pedrobaeza and @pilarvargas-tecnativa

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think returns should check in RMA/WH, and replaces, if it's other S/N, does it make sense to do the check?

@victoralmau

Copy link
Copy Markdown
Member Author

I think it's important (once again) to ensure data consistency, and that the replacement (out picking) wizard shouldn't allow users to select a kit that isn't available.

@pedrobaeza

Copy link
Copy Markdown
Member

Yeah, I'm not saying the contrary, but to look in both locations for both operations seems not right.

@victoralmau

Copy link
Copy Markdown
Member Author

Yeah, I'm not saying the contrary, but to look in both locations for both operations seems not right.

It's an interesting question, but so far I haven't found a better way to do it; regardless of the RMA location specified, depending on the routes and the settings for each one, stock will be drawn from one location or the other—or both—which is why the system checks both locations.

@pedrobaeza

Copy link
Copy Markdown
Member

As the method is called from different places, you can distinguish the need from that calls, and only look on RMA/WH when returning, and the other when replacing.

@victoralmau victoralmau force-pushed the 18.0-imp-rma_lot-TT62586 branch from 903c7ab to 601718b Compare June 17, 2026 14:25
@victoralmau victoralmau force-pushed the 18.0-imp-rma_lot-TT62586 branch from 601718b to 723b86e Compare June 18, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants