diff --git a/addons/hr_expense/models/account_move.py b/addons/hr_expense/models/account_move.py index 7f54774da95..b7bb1562d17 100644 --- a/addons/hr_expense/models/account_move.py +++ b/addons/hr_expense/models/account_move.py @@ -26,7 +26,7 @@ class AccountMove(models.Model): # Behave exactly like a receipt for everything except the display # This enables the synchronisation of payment terms, and sets the taxes and accounts based on the product def is_purchase_document(self, include_receipts=False): - return bool(self.expense_sheet_id and include_receipts) or super().is_purchase_document(include_receipts) + return bool(include_receipts and self.sudo().expense_sheet_id) or super().is_purchase_document(include_receipts) def is_entry(self): if self.expense_sheet_id: