Em 19/09/2013 10:14, Cédric Krier escreveu:
On 19/09/13 09:09 -0300, Gmail - Iasmini wrote:
Hi,
When I create a new class I have to include a field called "name" if
I want that the description appears on search and in tree view
instead of the ID, right?
No, you have to define a tree view with the fields you want to display.
Because Tryton only fills automatically the search screen if the
class has this field "name". If doesn't it brings the ID.
No, Tryton constructs a default tree view with the _rec_name field if
exists or the id.
I have the field "name" in my class, but it still brings the ID. I
revised the code and I can find nothing wrong. I'm comparing with
other class of the same type that is correct.
It could have many reasons:
- _rec_name doesn't exist
- client has a cached version of the view
How can I clean the cache?
I'm already using "-d" option to access the client. Is just that?
- there is a tree view defined with just the field id.
--
Iasmini Gomes
Sílex Sistemas
[email protected]
www.silexsistemas.com.br