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

[IMP] add code field to view in distribution table

parent 9319fba8
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
......@@ -23,6 +23,7 @@ class SupplyPointAssignation(models.Model):
supply_point_id = fields.Many2one('energy_selfconsumption.supply_point', required=True)
coefficient = fields.Float(string='Distribution coefficient', digits=(1, 5))
owner_id = fields.Many2one("res.partner", related='supply_point_id.owner_id')
code = fields.Char(related='supply_point_id.code')
table_coefficient_is_valid = fields.Boolean(related='distribution_table_id.coefficient_is_valid')
supply_point_filtered_ids = fields.One2many('energy_selfconsumption.supply_point',
......
......@@ -58,6 +58,7 @@
domain="[('id', 'in', supply_point_filtered_ids)]"
/>
<field name="owner_id"/>
<field name="code"/>
<field name="coefficient" sum="True"/>
</tree>
</field>
......
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