Skip to content
Snippets Groups Projects
Commit 58bb6523 authored by Enrico Stano's avatar Enrico Stano
Browse files

Merge branch 'feature/energy_selfconsumption_IMP_supply_point_interface' into 'dev'

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

See merge request !166
parents 60e2e2b9 552a4990
Branches dev
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 #36860 passed
......@@ -21,6 +21,9 @@ 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')
distribution_table_create_date = fields.Datetime(related='distribution_table_id.create_date')
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="distribution_table_create_date desc">
<field name="selfconsumption_project_id" string="Name"/>
<field name="distribution_table_state"/>
<field name="distribution_table_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