Permalink
Browse files

[FIX] hr_commission: Runbot warning fixed

  • Loading branch information...
Daniel-CA authored and jesusVMayor committed Jul 24, 2017
1 parent 1d04f0a commit 63cacc9bdac2dc72ae4f4b2ce888bee722002bdf
Showing with 1 addition and 1 deletion.
  1. +1 −1 hr_commission/models/res_partner.py
@@ -40,7 +40,7 @@ def _get_employee(self):
if len(self.users) == 1 and len(self.users[0].employee_ids) == 1:
self.employee = self.users[0].employee_ids[0]
@api.constrains('agent_type', 'employee')
@api.constrains('agent_type', 'users')
def _check_employee(self):
if self.agent_type == 'salesman' and not self.employee:
raise exceptions.ValidationError(

0 comments on commit 63cacc9

Please sign in to comment.