'How to process 'stock.immediate.transfer' records on Odoo 15?

I recently switched from Odoo 13 to Odoo 15. With Odoo 13, I could process 'stock.picking' with

models.execute_kw(db, uid, password, 'stock.immediate.transfer',
                                            'create',
                                            ({'pick_ids': [pickid]})
    )
   
   models.execute_kw(db, uid, password, 'stock.immediate.transfer', 'process',
                                [createdid], {})

However now with Odoo 15, running the same process processes and returns True but the stock picking record does not close. I looked at the documentation but did not see anything regarding how to process immediate transfers.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source