From 35893e200cf68f809a98b50d28d59493fc84b2af Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Wed, 5 Jan 2022 11:10:01 +0100 Subject: [PATCH] [update] year is string instead of integer --- models/scop_cotisation_idf.py | 2 +- models/scop_invoice_idf.py | 2 +- wizard/scop_invoice_idf_wizard.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/scop_cotisation_idf.py b/models/scop_cotisation_idf.py index 4b544cd..bd81771 100644 --- a/models/scop_cotisation_idf.py +++ b/models/scop_cotisation_idf.py @@ -24,7 +24,7 @@ class ScopCotisationsIDF(models.Model): journal = fields.Char('Journal') writing_date = fields.Date('Date écriture') piece = fields.Integer('Numéro de pièce comptable') - year = fields.Integer('Année') + year = fields.Char('Année') type = fields.Selection([ ('inv', 'Cotisation'), ('refund', 'Avoir'), diff --git a/models/scop_invoice_idf.py b/models/scop_invoice_idf.py index deb5313..41d77da 100644 --- a/models/scop_invoice_idf.py +++ b/models/scop_invoice_idf.py @@ -24,7 +24,7 @@ class ScopInvoiceIDF(models.Model): journal = fields.Char('Journal') writing_date = fields.Date('Date écriture') piece = fields.Integer('Numéro de pièce comptable') - year = fields.Integer('Année') + year = fields.Char('Année') type = fields.Selection([ ('inv', 'Facture'), ('refund', 'Avoir'), diff --git a/wizard/scop_invoice_idf_wizard.py b/wizard/scop_invoice_idf_wizard.py index de7ac63..ffcdb56 100644 --- a/wizard/scop_invoice_idf_wizard.py +++ b/wizard/scop_invoice_idf_wizard.py @@ -142,7 +142,7 @@ class ScopImportIDFWizard(models.TransientModel): line_type = "refund" lettrage = row['Lettrage N'] - year = int(row['Année']) + year = row['Année'] values = { 'company_id': company_id.id, -- GitLab