Skip to content

Commit

Permalink
changing api to @api.multi
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed May 3, 2016
1 parent ba9adba commit e7cb033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions purchase_term/models/purchase_term.py
Expand Up @@ -9,10 +9,10 @@ class PurchaseTerm(models.Model):
_name = "purchase.term"
_description = "Purchase Term"

@api.one
@api.depends("code")
@api.multi
def _compute_name(self):
self.display_name = self.code
for term in self:
term.display_name = term.code

name = fields.Char(
string="Term",
Expand Down

0 comments on commit e7cb033

Please sign in to comment.