From c0fe82d8332e2270a871de68a7802d6b221e8efc Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 26 Jun 2018 17:28:55 +0200 Subject: [PATCH] fix get_hs_code_recurively --- product_harmonized_system/models/product_category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_harmonized_system/models/product_category.py b/product_harmonized_system/models/product_category.py index 6f6233e..2da1e33 100644 --- a/product_harmonized_system/models/product_category.py +++ b/product_harmonized_system/models/product_category.py @@ -26,5 +26,5 @@ class ProductCategory(models.Model): elif self.parent_id: res = self.parent_id.get_hs_code_recursively() else: - res = None + res = self.env['hs.code'] return res