Skip to content

Commit

Permalink
[FIX] account_invoice_acccrual: pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Aug 22, 2018
1 parent fe659be commit 5ce3f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_invoice_accrual/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def invoice_validate(self):

@api.multi
def action_cancel(self):
if 'is_merge' not in self.env.context: # See account_invoice_merge module
# See account_invoice_merge module
if 'is_merge' not in self.env.context:
for invoice in self:
if invoice.to_be_reversed:
raise exceptions.Warning(
Expand Down

0 comments on commit 5ce3f7f

Please sign in to comment.