[18.0][IMP] rma_lot: Add quantity serial number validation when replace/return process#587
[18.0][IMP] rma_lot: Add quantity serial number validation when replace/return process#587victoralmau wants to merge 1 commit into
Conversation
112d577 to
fd8e8cc
Compare
c88c643 to
4aef22a
Compare
4aef22a to
903c7ab
Compare
|
Ping @pedrobaeza and @pilarvargas-tecnativa |
pedrobaeza
left a comment
There was a problem hiding this comment.
I think returns should check in RMA/WH, and replaces, if it's other S/N, does it make sense to do the check?
|
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. |
|
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. |
|
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. |
903c7ab to
601718b
Compare
…urn process TT62586
601718b to
723b86e
Compare
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