diff --git a/wizard/scop_bordereau_refund_wizard.py b/wizard/scop_bordereau_refund_wizard.py index fbd29acac107da863478499c02807a93270b735b..00679b13fd6f8d0a2d6c8793d19d20ec660dcf54 100644 --- a/wizard/scop_bordereau_refund_wizard.py +++ b/wizard/scop_bordereau_refund_wizard.py @@ -16,7 +16,7 @@ class ScopBordereauRefundWizard(models.TransientModel): ) date_refund = fields.Date( string="Date de régularisation", - default=fields.Date.today(), + default=lambda self: fields.Date.today(), required=1, ) cotiz_reminder = fields.Html("Rappel des cotisations", readonly=1) diff --git a/wizard/scop_cotisation_cg_regul.py b/wizard/scop_cotisation_cg_regul.py index f5df5b4ae5da294df4dc4026b12e5a62b1fe4889..87d91fe18299544189534fcaa105bc59144a0ac8 100644 --- a/wizard/scop_cotisation_cg_regul.py +++ b/wizard/scop_cotisation_cg_regul.py @@ -11,7 +11,7 @@ class ScopCotisationRegul(models.TransientModel): name = fields.Char() date_regul = fields.Date( - string="Date de régularisation", default=fields.Date.today() + string="Date de régularisation", default=lambda self: fields.Date.today() ) bordereau_id = fields.Many2one( comodel_name="scop.bordereau", diff --git a/wizard/scop_cotisation_cg_wizard.py b/wizard/scop_cotisation_cg_wizard.py index c49c7451e6943e3d7169b56680a4b95a350c4867..ba9004a1a4b7503fa3db97e83bbc50ca5cd5ab8d 100644 --- a/wizard/scop_cotisation_cg_wizard.py +++ b/wizard/scop_cotisation_cg_wizard.py @@ -45,7 +45,7 @@ class ScopCotisationWizard(models.TransientModel): default="all", ) partner_ids = fields.Many2many(comodel_name="res.partner", string="Coopératives") - date = fields.Date("Date de bordereau", default=fields.Date.today()) + date = fields.Date("Date de bordereau", default=lambda self: fields.Date.today()) date_start = fields.Date("Adhésion après le") date_limit = fields.Date("Adhésion avant le")