[19.0][MIG] pos_sale_picking_keep #1576
ℹ️ Tests pass (tour SUCCEEDED, 0 failed, 0 error(s)). CI is red only because of the Chrome teardown WARNING (Killing chrome descendants-or-self ... chrome (zombie)) that checklog-odoo flags, which affects every PR with a tour in this repo. The infra fix is in #1577; once merged, this PR will go green when re-run on the updated base.
Added a second commit with an improvement found while using the module in production: when settling a sale order that was already delivered, the PoS loaded the lines with zero quantity (or even dropped the lines completely for products whose UoM is not groupable in the PoS, due to the line splitting logic of pos_sale). Since with this module the PoS is only used to charge the order and the sale order pickings are kept, the ordered quantity is now loaded, deducting only what was already invoiced. Covered with a new tour-based test.
Code LGTM
tobiaszehntner
alan196
Migration of
pos_sale_picking_keepfrom 18.0 to 19.0.Migration changes
19.0.1.0.0.tests/pos/tours/utils/*andtests/generic_helpers/dialog_util).sales_team.group_sale_salesmanin the test setup: in 19.0point_of_sale.group_pos_managerno longer implies sales rights and the webonchangenow checkscreateaccess, so creating the sale order in the test raisedAccessError.ruffUP031).readme/CONTRIBUTORS.mdand regenerate the README.Functional behavior is unchanged; both PoS tours pass locally.
cc @pedrobaeza