[FIX] point_of_sale: ensure properties are read with the correct company.

This commit is contained in:
Victor Feyens
2020-02-27 12:19:24 +00:00
parent 5f7a4c8113
commit 25cf56e49b
+1 -1
View File
@@ -298,7 +298,7 @@ class PosSession(models.Model):
self._check_if_no_draft_orders()
if self.update_stock_at_closing:
self._create_picking_at_end_of_session()
self._create_account_move()
self.with_company(self.company_id)._create_account_move()
if self.move_id.line_ids:
self.move_id.post()
# Set the uninvoiced orders' state to 'done'