Skip to content
Snippets Groups Projects
Commit 6a0b7092 authored by Emanuel Buzey's avatar Emanuel Buzey Committed by Daniil Digtyar Vasilieva
Browse files

[FIX] energy_selfconsumption: add required attribute

parent bc5962ef
No related branches found
No related tags found
2 merge requests!253[REL] Release 06/11/23,!211[IMP] energy_selfconsumption: invoicing acquired power
This commit is part of merge request !211. Comments created here will be created in the context of that merge request.
...@@ -29,12 +29,14 @@ class ContractGenerationWizard(models.TransientModel): ...@@ -29,12 +29,14 @@ class ContractGenerationWizard(models.TransientModel):
recurrence_interval = fields.Integer( recurrence_interval = fields.Integer(
default=1, default=1,
string=_("Invoice Every"), string=_("Invoice Every"),
required=True,
help=_("Invoice every (Days/Week/Month/Year)"), help=_("Invoice every (Days/Week/Month/Year)"),
) )
recurring_rule_type = fields.Selection( recurring_rule_type = fields.Selection(
RULE_TYPE_OPTIONS, RULE_TYPE_OPTIONS,
default="monthlylastday", default="monthlylastday",
string=_("Recurrence"), string=_("Recurrence"),
required=True,
help=_("Specify Interval for automatic invoice generation."), help=_("Specify Interval for automatic invoice generation."),
) )
selfconsumption_id = fields.Many2one( selfconsumption_id = fields.Many2one(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment