Before this commit: POS online payments uses the logged-in user or the public user, even when a POS order customer might also be present. After this commit: We check the partner_id for POS orders and give it precedence over both the logged-in user and the public user. task-3805695 closes odoo/odoo#157562 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>