diff --git a/br_nfse/models/account_invoice.py b/br_nfse/models/account_invoice.py index ac96dbecd..b3b5e7e6b 100644 --- a/br_nfse/models/account_invoice.py +++ b/br_nfse/models/account_invoice.py @@ -18,6 +18,11 @@ def _prepare_edoc_vals(self, inv): res['ambiente_nfse'] = 'homologacao' \ if inv.company_id.tipo_ambiente_nfse == '2' else 'producao' + + if self.invoice_model == '001': + res['data_emissao'] = self.date_invoice + res['data_fatura'] = self.date_invoice + return res def _prepare_edoc_item_vals(self, line):