[IMP] account_payment_sale_stock: Better code for assign payment mode to invoice from pickings
Use sale_ok and purchase_ok instead of tweaking payment type