Skip to content
Snippets Groups Projects
Commit 54209a73 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me: Committed by emanuel buzey
Browse files

Constrain name changed

parent e23cc716
No related branches found
No related tags found
No related merge requests found
Pipeline #39916 passed
This commit is part of merge request !181. Comments created here will be created in the context of that merge request.
......@@ -43,7 +43,7 @@ class SupplyPointAssignation(models.Model):
raise ValidationError(_("Coefficient can't be negative."))
@api.constrains("owner_id")
def constraint_coefficient(self):
def constraint_owner_id(self):
for record in self:
if record.owner_id and not record.owner_id.member:
raise ValidationError(_("The selected partner is not a member"))
......
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