Skip to content

Commit

Permalink
NFe cannot be copied anymore! (evil look)
Browse files Browse the repository at this point in the history
  • Loading branch information
carcaroff committed Aug 30, 2018
1 parent ae23b08 commit 0dba662
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions br_account_einvoice/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ def send_email_nfe_queue(self):
nfe.send_email_nfe()
nfe.email_sent = True

@api.multi
def copy(self, default=None):
raise UserError('Não é possível duplicar uma Nota Fiscal.')


class InvoiceEletronicEvent(models.Model):
_name = 'invoice.eletronic.event'
Expand Down

0 comments on commit 0dba662

Please sign in to comment.