-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0][FIX] pos_order_return: make returns properly #981
Conversation
@chienandalu please check tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. Using test framework (out of tests) is not a good idea in term of performance.
In the meantime, i dont understand why it is needed in this case. Could you avoid it ?
Thanks !
That's normally true and we found it out the hard way time ago :) In this case, anyway, we're dealing with a single record and the overhead can be assumed IMO. In exchange, we cover onchange workflows by default without pulling extra deps like the onchange helper module. |
could you provide before / after performance ? could you also take a look on the CI that is red ? |
f4ef495
to
09b9534
Compare
The module was broken. So the gain is 100% 😅 Jokes aside in our experience is reliable for light singleton operations like this (run a wizard)
It should be fixed now |
Please push again, as there's no CI checks. |
09b9534
to
0a0e193
Compare
All green |
Thanks for the fix, it seems that the error no longer occurs. As far as I can see, the picking created in the return remains in Note: this only occurs when we choose 'In real time', otherwise if we choose 'At the session closing' option all pickings are transferred. |
Before this PR the returns weren't functional when a stock picking was involved. TT42730
0a0e193
to
4498c6d
Compare
Sure. It should be close. Check again, please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👏
@legalsylvain please unblock |
Merging as no further answer from @legalsylvain. If a serious performance problem is faced, we can proceed other way: /ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 4a5c96a. Thanks a lot for contributing to OCA. ❤️ |
@pedrobaeza, I was looking for the long debate with @rousseldenis , @Cedric-Pigeon, @lmignon, which had concluded (except you) not to use odoo.test.Forms (outside the tests of course) and I could not find it. I din't changed my mind (follow OCA members conclusion, see link below). I have nothing to add. Merging a PR in this context, because the OCA Representative of the repo (and original author of the module) who is blocking the PR has not responded for a few days is not correct.
@chienandalu : It would have been interesting to spend some time to analyze the execution time with / without That's being said :
so I will add soon in the |
That thread is because they want to do operations in batch. This is for only one record. And all that context was taken into account, but this was required to fix the problem, and it was paralyzed by you for 2 weeks, so I consider the merging correct. And your measures of 8x/11x of increase were on sale.order.line, where lots of computations/onchanges are done, not here in this specific wizard. |
Before this PR the returns weren't functional when a stock picking was involved.
cc @Tecnativa TT42730
please review @pedrobaeza @CarlosRoca13