Skip to content

Commit

Permalink
[FIX] Fixed Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivedi-Vacha-SerpentCS committed Oct 3, 2018
1 parent 0ba010d commit 2ecf49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hr_contract_reference/models/hr_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class HrContract(models.Model):

@api.model
def create(self, vals):
if vals.get('number', '/') == '/':
if vals.get('name', '/') == '/':
vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref')
return super(HrContract, self).create(vals)

0 comments on commit 2ecf49a

Please sign in to comment.