Skip to content

Commit

Permalink
[IMP]属性名称里不显示属性类别
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodERPJeff committed Jun 29, 2018
1 parent c289c3a commit c9666d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goods/models/goods.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Attribute(models.Model):
@api.depends('value_ids')
def _compute_name(self):
self.name = ' '.join(
[value.category_id.name + ':' + value.value_id.name for value in self.value_ids])
[value.value_id.name for value in self.value_ids])

@api.model
def name_search(self, name='', args=None, operator='ilike', limit=100):
Expand Down

0 comments on commit c9666d1

Please sign in to comment.