# -*- coding: utf-8 -*- from odoo import api, models class StockPicking(models.Model): _inherit = 'stock.picking' @api.model def _create_picking_from_pos_order_lines(self, location_dest_id, lines, picking_type, partner=False): # Pass pos_picking_operation=True in context during picking creation and confirmation return super(StockPicking, self.with_context(pos_picking_operation=True))._create_picking_from_pos_order_lines( location_dest_id, lines, picking_type, partner=partner )