diff --git a/models/scop_cotisation_idf.py b/models/scop_cotisation_idf.py index 4b544cd068c0c6d37507f07046aba967ad6f2374..bd8177146abd1668b79b4ba0f887483e4e223a69 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 deb53133295b0ba4792a2d6409ecd644c823ef1e..41d77dab2d898cbfdc6e78dc57620c67a236d0f5 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 de7ac630de919bf3c8375adc8e2ef0cdb936b00a..ffcdb56a2b8d35351f43115571180f3c3f81a06a 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,