Skip to content

Commit

Permalink
Merge PR OCA#2067 into 8.0
Browse files Browse the repository at this point in the history
Signed-off-by sergiocorato
  • Loading branch information
OCA-git-bot committed Feb 1, 2021
2 parents cdb5393 + e7d273e commit 3d01da1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_00_xml_import(self):
self.assertEqual(
invoice.partner_id.register_fiscalpos.code, 'RF02')
self.assertEqual(invoice.reference, 'FT/2015/0006')
self.assertEqual(invoice.supplier_invoice_number, 'FT/2015/0006')
self.assertEqual(invoice.amount_total, 57.00)
self.assertEqual(invoice.gross_weight, 0.00)
self.assertEqual(invoice.net_weight, 0.00)
Expand Down
5 changes: 5 additions & 0 deletions l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,11 @@ def set_vendor_bill_data(self, FatturaBody, invoice):
'reference':
FatturaBody.DatiGenerali.DatiGeneraliDocumento.Numero,
})
if not invoice.supplier_invoice_number:
invoice.update({
'supplier_invoice_number':
FatturaBody.DatiGenerali.DatiGeneraliDocumento.Numero,
})

def set_parent_invoice_data(self, FatturaBody, invoice):
ParentInvoice = FatturaBody.DatiGenerali.FatturaPrincipale
Expand Down

0 comments on commit 3d01da1

Please sign in to comment.