From 49a6820238f01fa07f75a36e8cd93148fdffc773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 3 Aug 2011 20:06:01 +0200 Subject: [PATCH] Remove wrong modification of inherited company field --- work.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/work.py b/work.py index 39a270c810..366a5fb615 100644 --- a/work.py +++ b/work.py @@ -108,16 +108,6 @@ class Work(ModelSQL, ModelView): 'timesheet work by task/project!'), ] self._order.insert(0, ('sequence', 'ASC')) - if 'company' in self._inherit_fields: - company_field = copy.copy( - self._inherit_fields['company']) - company_field[2].states = copy.copy(company_field[2].states) - company_field[2].states.update({ - 'invisible': Bool(Get(Eval('context', {}), 'type')), - 'readonly': Not(Bool(Eval('active'))), - }) - - self._inherit_fields['company'] = company_field def get_parent(self, ids, name): res = dict.fromkeys(ids, None)