From 267156ed9574e9da20eb9599ff96b150e24d3ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Mar 2020 20:08:12 +0100 Subject: [PATCH] Set all fields readonly for inactive records issue3747 review295061011 --- product.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/product.py b/product.py index 1d17093547..1b9f6b95ed 100644 --- a/product.py +++ b/product.py @@ -3,7 +3,6 @@ from trytond.model import (ModelStorage, ModelView, DeactivableMixin, fields, tree) from trytond.pool import PoolMeta, Pool -from trytond.pyson import Eval class ClassificationMixin(DeactivableMixin): @@ -34,11 +33,7 @@ class Template(metaclass=PoolMeta): selection='get_classification', domain=[ ('selectable', '=', True), - ], - states={ - 'readonly': ~Eval('active', True), - }, - depends=['active']) + ]) @classmethod def _get_classification(cls):