El 30/03/17 a les 13:56, Carlos Ibrahim Arias ha escrit:
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.
Why you don't use icons? The colors were removed in favor of icons.
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)
I don't understand why this error is related to the patch. The problem
here is that view_attributes must be a classmethod, but you have one
which is defined as instance method.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
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/3935b79b-197b-5c25-14c6-54b32f301ad5%40koolpi.com.