[IMP] l10n_latam_invoice_document: remove include recipts

Since we are not using document only in invoice by now we remove the
option to incoude receipts.

closes odoo/odoo#38842

X-original-commit: af0703f959357120ec9a8ea674e02faaddfefb85
Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Katherine Zaoral
2019-10-15 21:42:12 +00:00
committed by fw-bot
parent bdc8e948d6
commit 2b221edb49
@@ -60,7 +60,7 @@ class AccountMove(models.Model):
remaining.l10n_latam_sequence_id = False
def _compute_l10n_latam_amount_and_taxes(self):
recs_invoice = self.filtered(lambda x: x.is_invoice(include_receipts=True))
recs_invoice = self.filtered(lambda x: x.is_invoice())
for invoice in recs_invoice:
tax_lines = invoice.line_ids.filtered('tax_line_id')
included_taxes = invoice.l10n_latam_document_type_id and \