Skip to content
Snippets Groups Projects
Commit a5356a6a authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

[IMP] added archive option for distribution tables

parent f8aa9052
No related branches found
No related tags found
3 merge requests!138Hotfix setup name error,!134Release v14.0.1.1.6,!126[IMP] Feature/add energy selfconsumption distribution table
This commit is part of merge request !134. Comments created here will be created in the context of that merge request.
......@@ -26,6 +26,7 @@ class DistributionTable(models.Model):
state = fields.Selection(STATE_VALUES, default="draft", required=True)
supply_point_assignation_ids = fields.One2many('energy_selfconsumption.supply_point_assignation', 'distribution_table_id')
coefficient_is_valid = fields.Boolean(compute=_compute_coefficient_is_valid, readonly=True, store=False)
active = fields.Boolean(default=True)
@api.onchange('selfconsumption_project_id')
def _onchange_selfconsumption_project_id(self):
......
......@@ -22,6 +22,7 @@
/>
</header>
<sheet>
<field name="active" invisible="True"/>
<div class="oe_title">
<label for="name"/>
<h1>
......
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