Skip to content

Commit

Permalink
Merge branch '11.0' into 11.0-cancelled-paulistana
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaGD committed Feb 13, 2019
2 parents 05acbef + fc634c7 commit 5f681fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion account_group_invoices/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _get_fpos_journal(self, inv):
company = inv['company']
fpos_id = journal_id = False

if 'fpos' in inv:
if 'fpos' in inv and inv['fpos']:
fpos_id = afp.browse(inv['fpos'])
else:
fpos_id = inv['partner'].with_context(
Expand Down
6 changes: 2 additions & 4 deletions br_account_einvoice/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,8 @@ def send_email_nfe(self):
if not mail:
raise UserError('Modelo de email padrão não configurado')
atts = self._find_attachment_ids_email()
values = {
"attachment_ids": atts + mail.attachment_ids.ids
}
mail.send_mail(self.invoice_id.id, email_values=values)
self.invoice_id.message_post_with_template(
mail.id, attachment_ids=[(6, 0, atts + mail.attachment_ids.ids)])

@api.multi
def send_email_nfe_queue(self):
Expand Down

0 comments on commit 5f681fe

Please sign in to comment.