Remove colors attribute on tree view

issue4861
review16551003
This commit is contained in:
Cédric Krier committed 2015-08-22 09:01:04 +02:00
1 parent 5dc260c1ba
commit e42cfe7892
1 file changed
+3 -8
+3 -8
View File
@@ -15,7 +15,7 @@ from trytond.wizard import Wizard, StateTransition, StateView, StateAction, \
StateReport, Button
from trytond.report import Report
from trytond import backend
from trytond.pyson import Eval, Bool, PYSONEncoder, If
from trytond.pyson import Eval, Bool, PYSONEncoder
from trytond.transaction import Transaction
from trytond.pool import Pool, PoolMeta
from trytond.rpc import RPC
@@ -1482,8 +1482,8 @@ class Line(ModelSQL, ModelView):
return result
xml = '<?xml version="1.0"?>\n' \
'<tree string="%s" editable="top" on_write="on_write" ' \
'colors="red:state==\'draft\'">\n' % title
'<tree string="%s" editable="top" on_write="on_write">\n' \
% title
fields = set()
for column in journal.view.columns:
fields.add(column.field.name)
@@ -1508,11 +1508,6 @@ class Line(ModelSQL, ModelView):
result['fields'] = cls.fields_get(fields_names=list(fields))
return result
@classmethod
def view_attributes(cls):
return [('/tree[@on_write="on_write"]', 'colors',
If(Eval('state') == 'draft', 'red', 'black'))]
@classmethod
def reconcile(cls, lines, journal=None, date=None, account=None,
description=None):