Skip to content
Snippets Groups Projects

Release v14.0.1.1.6

Merged Daniil Digtyar Vasilieva requested to merge release/14.0.1.1.5 into 14.0
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -44,6 +44,6 @@ class Selfconsumption(models.Model):
raise ValidationError(_("Project must have a valid Code."))
if not record.power or record.power <= 0:
raise ValidationError(_("Project must have a valid Generation Power."))
if record.distribution_table_ids.filtered_domain([('state', '=', 'validated')]):
if not record.distribution_table_ids.filtered_domain([('state', '=', 'validated')]):
raise ValidationError(_("Must have a valid Distribution Table."))
record.write({"state": "active"})
Loading