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

[IMP] added help and required to field coefficient

parent af3301ea
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
Pipeline #30159 passed
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
......@@ -21,7 +21,8 @@ class SupplyPointAssignation(models.Model):
distribution_table_id = fields.Many2one('energy_selfconsumption.distribution_table', required=True)
supply_point_id = fields.Many2one('energy_selfconsumption.supply_point', required=True)
coefficient = fields.Float(string='Distribution coefficient', digits=(1, 5))
coefficient = fields.Float(string='Distribution coefficient', digits=(1, 5), required=True,
help="The sum of all the coefficients must result in 1")
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')
......
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