From 52f6a59f9881cc160a031f466025bb3280d3e56c Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Mon, 13 Nov 2023 19:55:51 +0100
Subject: [PATCH] [FIX] field name and type error

---
 models/scop_cotisation_idf.py      | 2 +-
 report/scop_contribution_report.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/models/scop_cotisation_idf.py b/models/scop_cotisation_idf.py
index 2604d4c..8cbc341 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")
+    acc_doc = fields.Char("Numéro de pièce comptable")
     year = fields.Char("Année")
     type = fields.Selection(
         [
diff --git a/report/scop_contribution_report.py b/report/scop_contribution_report.py
index f88249e..1aabfde 100644
--- a/report/scop_contribution_report.py
+++ b/report/scop_contribution_report.py
@@ -60,7 +60,7 @@ class ScopContributionReport(models.Model):
                     lambda p: {
                         "date": p.writing_date,
                         "name": p.name,
-                        "ref": p.piece,
+                        "ref": p.acc_doc,
                         "credit": p.credit,
                     }
                 )
-- 
GitLab