account-invoicing
account-invoicing copied to clipboard
[14.0][MIG] purchase_stock_picking_return_invoicing_force_invoiced
Standard migration
In theory this one shouldn't be needed in newer versions.
In theory, but my customer and I I tested it and without it the module purchase_force_invoiced does not work when the module purchase_stock_picking_return_invoicing is installed.
Please expose them the failing use case and it would be interesting to have it as test in the module. The changes you have done in the tests doesn't seem very correct, changing fixed amounts...
Why the tests doesn't seem very correct? They are green Regarding changing amounts, the only amount I changed is the 50 and I've only changed the sign.
Yeah, I mean that one, but I think this change was done by Odoo. And the steps to reproduce the problem without the module?
The code is simple and it's easy to see that the code of "purchase_stock_picking_return_invoicing" is overwritting the values updated by "purchase_force_invoiced". I've attached a quick video to see the behavior on all cases.
https://user-images.githubusercontent.com/10927087/196281421-1b60e3da-c059-41a2-a179-8bb5ca5ffefa.mp4
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.