Skip to content
Snippets Groups Projects
Commit b30b6b65 authored by ebuzeyTra's avatar ebuzeyTra
Browse files

table state fixed

parent bbb1c7b3
No related branches found
No related tags found
2 merge requests!187Release 14.0.1.1.13,!172General flow of states applied
Pipeline #38927 passed
......@@ -73,7 +73,7 @@ class Selfconsumption(models.Model):
if not record.power or record.power <= 0:
raise ValidationError(_("Project must have a valid Generation Power."))
record.write({"state": "active"})
self.distribution_table_state("process", "draft")
self.distribution_table_state("process", "active")
def set_inscription(self, selfconsumption_state):
for record in self:
......
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