From 986a2e3d32c1d2d9aae8d6ce5c89014e083c8a3e Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 27 Oct 2022 13:53:05 +0200 Subject: [PATCH] Use order_code when ordering on rec_name issue11833 review412121003 --- product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product.py b/product.py index b69541edb8..db0e183003 100644 --- a/product.py +++ b/product.py @@ -166,7 +166,7 @@ class Template( @classmethod def order_rec_name(cls, tables): table, _ = tables[None] - return [table.code, table.name] + return cls.order_code(tables) + [table.name] def get_rec_name(self, name): if self.code: @@ -543,7 +543,7 @@ class Product( } else: template = tables['template'] - return [product.code] + Template.name.convert_order('name', + return cls.order_code(tables) + Template.name.convert_order('name', tables['template'], Template) def get_rec_name(self, name):