changeset 6e00993a42c3 in modules/product_classification:default
details: 
https://hg.tryton.org/modules/product_classification?cmd=changeset;node=6e00993a42c3
description:
        Set all fields readonly for inactive records

        issue3747
        review295061011
diffstat:

 product.py |  7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 6ab27240ac11 -r 6e00993a42c3 product.py
--- a/product.py        Sun Mar 01 16:12:39 2020 +0100
+++ b/product.py        Tue Mar 17 20:08:12 2020 +0100
@@ -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 @@
         selection='get_classification',
         domain=[
             ('selectable', '=', True),
-            ],
-        states={
-            'readonly': ~Eval('active', True),
-            },
-        depends=['active'])
+            ])
 
     @classmethod
     def _get_classification(cls):

Reply via email to