account-invoicing icon indicating copy to clipboard operation
account-invoicing copied to clipboard

[14.0][MIG] purchase_stock_picking_return_invoicing_force_invoiced

Open eantones opened this issue 2 years ago • 6 comments

Standard migration

eantones avatar Oct 17 '22 18:10 eantones

In theory this one shouldn't be needed in newer versions.

pedrobaeza avatar Oct 17 '22 18:10 pedrobaeza

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.

eantones avatar Oct 17 '22 18:10 eantones

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...

pedrobaeza avatar Oct 17 '22 18:10 pedrobaeza

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.

eantones avatar Oct 17 '22 18:10 eantones

Yeah, I mean that one, but I think this change was done by Odoo. And the steps to reproduce the problem without the module?

pedrobaeza avatar Oct 17 '22 18:10 pedrobaeza

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

eantones avatar Oct 17 '22 20:10 eantones

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.

github-actions[bot] avatar May 26 '24 12:05 github-actions[bot]