From 91b1ca0bc3f538e5f4e142b9d8179087f4f426e5 Mon Sep 17 00:00:00 2001
From: Emanuel Buzey <buzeyemanuel@gmail.com>
Date: Tue, 3 Oct 2023 16:57:55 +0200
Subject: [PATCH] [FIX] energy_selfconsumption: change default value of
 recurring_rule_type

---
 energy_selfconsumption/wizards/define_invoicing_mode_wizard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py b/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
index 955d25627..10e6376ee 100644
--- a/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
+++ b/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py
@@ -39,7 +39,7 @@ class ContractGenerationWizard(models.TransientModel):
     )
     recurring_rule_type = fields.Selection(
         RULE_TYPE_OPTIONS,
-        default="monthly",
+        default="monthlylastday",
         string=_("Recurrence"),
         help=_("Specify Interval for automatic invoice generation."),
     )
-- 
GitLab