mirror of
https://github.com/NaN-tic/trytond-smtp.git
synced 2023-12-13 21:20:20 +01:00
Remove colors on view
(grafted from b4953779e32f9dc0b65d27b979d4372e6ca4e4be)
This commit is contained in:
parent
67a44cce7c
commit
6352731c05
1 changed files with 1 additions and 6 deletions
7
smtp.py
7
smtp.py
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue