From 76cc2df6700ea92ec52627bdcda02e85eb3e283b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 8 Apr 2008 17:26:15 +0200 Subject: [PATCH] Better name for relation fields No need to repeat the object name --- category.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/category.py b/category.py index ddd2f4c87c..6fd2858296 100644 --- a/category.py +++ b/category.py @@ -9,9 +9,9 @@ class Category(OSV): name = fields.Char('Name', size=64, required=True) complete_name = fields.Function('get_complete_name', type="char", string='Complete Name') - parent = fields.Many2One('product.category','Parent Category', select=True) + parent = fields.Many2One('product.category','Parent', select=True) childs = fields.One2Many('product.category', 'parent', - string='Child Categories') + string='Childs') def get_complete_name(self, cursor, user, ids, name, arg, context): res = self.name_get(cursor, user, ids, context)