From bf7a0d426ff8f8c46e5f74c13552b9175de529aa Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Tue, 4 May 2021 12:07:29 +0200 Subject: [PATCH] [update] type is required --- models/scop_cotisations_idf.py | 2 +- models/scop_invoice_idf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/scop_cotisations_idf.py b/models/scop_cotisations_idf.py index f7e34d0..5e6dd19 100644 --- a/models/scop_cotisations_idf.py +++ b/models/scop_cotisations_idf.py @@ -30,7 +30,7 @@ class ScopCotisationsIDF(models.Model): ('refund', 'Avoir'), ('reject', 'Rejet'), ('pay', 'Paiment')], - string='Type', ) + string='Type', required=True) lettrage = fields.Char('Lettrage') currency_id = fields.Many2one( comodel_name='res.currency', diff --git a/models/scop_invoice_idf.py b/models/scop_invoice_idf.py index 347c181..99ebd0c 100644 --- a/models/scop_invoice_idf.py +++ b/models/scop_invoice_idf.py @@ -30,7 +30,7 @@ class ScopInvoiceIDF(models.Model): ('refund', 'Avoir'), ('reject', 'Rejet'), ('pay', 'Paiment')], - string='Type',) + string='Type', required=True) lettrage = fields.Char('Lettrage') currency_id = fields.Many2one( comodel_name='res.currency', -- GitLab