Skip to content
Snippets Groups Projects

Feature/add constrain to spa

Merged emanuel buzey requested to merge feature/add-constrain-to-spa into dev
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -48,7 +48,7 @@ class SupplyPointAssignation(models.Model):
for record in self:
supply_points = record.distribution_table_id.selfconsumption_project_id.inscription_ids.mapped('partner_id.supply_ids')
if record.supply_point_id.id not in supply_points.ids:
raise ValidationError(_("The partner of the supply ppoint is not subscribed to the project"))
raise ValidationError(_("The partner of the supply point is not subscribed to the project"))
@api.onchange('coefficient')
def _onchange_coefficient(self):
Loading