Feat:Se agrega vista a 'sale_form

This commit is contained in:
Mongar28
2024-08-15 11:03:50 -05:00
parent 7dab4ef9ce
commit 77c5fd858e
7 changed files with 25 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
from trytond.pool import PoolMeta, Pool
from trytond.model import fields, ModelSQL, ModelView
from trytond.pyson import Eval
from trytond.transaction import Transaction
@@ -12,7 +11,7 @@ class Sale(metaclass=PoolMeta):
'sale',
"Delete lines",
states={
'readonly': Eval('state') != 'draft'
'readonly': True
}
)