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

[IMP] energy_selfconsumption: add tab to show assigantions on projects

parent 0762481e
No related branches found
No related tags found
2 merge requests!173Release 14.0.1.1.12,!166[IMP] energy_selfconsumption: add tab to show assigantions on projects
Pipeline #36428 passed
......@@ -21,6 +21,8 @@ class SupplyPointAssignation(models.Model):
'supply_point_id.id'))])
distribution_table_id = fields.Many2one('energy_selfconsumption.distribution_table', required=True)
selfconsumption_project_id = fields.Many2one(related='distribution_table_id.selfconsumption_project_id')
distribution_table_state = fields.Selection(related='distribution_table_id.state')
supply_point_id = fields.Many2one('energy_selfconsumption.supply_point', required=True)
coefficient = fields.Float(string='Distribution coefficient', digits=(1, 5), required=True,
help="The sum of all the coefficients must result in 1")
......
......@@ -36,6 +36,18 @@
</div>
</group>
</group>
<notebook>
<page string="Self-consumption Projects" name="selfconsumption_project" autofocus="autofocus">
<field name="supply_point_assignation_ids">
<tree default_order="create_date desc">
<field name="selfconsumption_project_id"/>
<field name="distribution_table_state"/>
<field name="create_date"/>
</tree>
</field>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
......
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