opt grn and ztree

This commit is contained in:
ivan deng
2019-06-14 22:43:15 +08:00
parent b929a9ccb0
commit 28f3cb44d0
25 changed files with 58 additions and 25 deletions

View File

@@ -23,7 +23,7 @@ class ProductCategory(models.Model):
# 更新 complete_name 算法当有context: show_short =1 时,只显示短名
@api.multi
def name_get(self):
if self._context.get('category_show_short'):
if self._context.get('show_short'):
new_res = []
for category in self:
name = category.name