Remove colors on view

(grafted from b4953779e32f9dc0b65d27b979d4372e6ca4e4be)
This commit is contained in:
Sergi Almacellas Abellana 2015-12-10 23:11:24 +01:00
parent 67a44cce7c
commit 6352731c05

View file

@ -3,7 +3,7 @@
#the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, fields
from trytond.pool import Pool
from trytond.pyson import Eval, If, Equal
from trytond.pyson import Eval
import smtplib
__all__ = ['SmtpServer', 'SmtpServerModel']
@ -160,11 +160,6 @@ class SmtpServer(ModelSQL, ModelView):
self.raise_user_error('server_model_not_found', model.name)
return servers[0].server
@classmethod
def view_attributes(cls):
return [('/tree', 'colors',
If(Equal(Eval('state'), 'draft'), 'grey', 'black'))]
class SmtpServerModel(ModelSQL):
'SMTP Server - Model'