Re: [tryton-dev] Restore colors attribute on tree view

2017-03-30 Thread Cédric Krier
On 2017-03-30 04:56, Carlos Ibrahim Arias wrote:
> I tried to restore the color attribute adding back all the removed lines 
> but I'm getting the following error:
>
> Anyone can help?

I doubt you will find any help to restore a feature that was decided to
remove. Instead I can suggest you to use icons instead of colors. They
are better for accessibility because they are readable for blind people
and they can express an exact meaning.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20170330130128.GW6408%40tetsuo.


[tryton-dev] Restore colors attribute on tree view

2017-03-30 Thread Carlos Ibrahim Arias
Hello World : )

I'm developing an installation using tryton 3.8 to gnuhealth 3 and the 
client wants to use colors on tree views in appointments and other models.

I found that this functionallity was removed as indicated on 
https://tryton-rietveld.appspot.com/16551002

I tried to restore the color attribute adding back all the removed lines 
but I'm getting the following error:

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 162, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 191, in _dispatch
res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 162, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/model/modelview.py", line 342, in fields_view_get
result['field_childs'])
  File "/trytond/model/modelview.py", line 398, in _view_look_dom_arch
for xpath, attribute, value in cls.view_attributes():
TypeError: unbound method view_attributes() must be called with ir.module 
instance as first argument (got nothing instead)

Anyone can help?

Thanks in advanced,

Carlos

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/45d703e8-2d09-4759-884a-3c62866da8cf%40googlegroups.com.