diff --git a/account.py b/account.py index 0816fe3..84795f3 100644 --- a/account.py +++ b/account.py @@ -38,7 +38,7 @@ class SaleAccountMoves(Wizard): 'start_date': self.start.start_date, 'end_date': self.start.end_date, 'shop': self.start.shop.id, - 'party': self.start.party.id + 'party': self.start.party.id if self.start.party else None } return action, data