From 045b10cfd40cbe7e598704787b0174d0de8f48ed Mon Sep 17 00:00:00 2001 From: ivan deng Date: Thu, 21 Nov 2019 02:11:38 +0800 Subject: [PATCH] add hatch sale --- app_product_superbar/models/product_category.py | 1 - app_product_ztree/models/product_category.py | 1 - 2 files changed, 2 deletions(-) diff --git a/app_product_superbar/models/product_category.py b/app_product_superbar/models/product_category.py index 377ddafc..f948c048 100644 --- a/app_product_superbar/models/product_category.py +++ b/app_product_superbar/models/product_category.py @@ -21,7 +21,6 @@ class ProductCategory(models.Model): _inherit = 'product.category' # 更新 complete_name 算法,当有context: show_short =1 时,只显示短名 - @api.multi def name_get(self): if self._context.get('show_short'): new_res = [] diff --git a/app_product_ztree/models/product_category.py b/app_product_ztree/models/product_category.py index 377ddafc..f948c048 100644 --- a/app_product_ztree/models/product_category.py +++ b/app_product_ztree/models/product_category.py @@ -21,7 +21,6 @@ class ProductCategory(models.Model): _inherit = 'product.category' # 更新 complete_name 算法,当有context: show_short =1 时,只显示短名 - @api.multi def name_get(self): if self._context.get('show_short'): new_res = []