From 8ac18badfcdc30d27a8abeabd2ff74c8c5ac82dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Jan 2024 23:08:46 +0100 Subject: [PATCH] Remove unused template variable to order product record name --- modules/product/product.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/product/product.py b/modules/product/product.py index 522f7a10a5..471e75baf3 100644 --- a/modules/product/product.py +++ b/modules/product/product.py @@ -583,8 +583,6 @@ class Product( tables['template'] = { None: (template, product.template == template.id), } - else: - template = tables['template'] return cls.order_code(tables) + Template.name.convert_order('name', tables['template'], Template)