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
- there is a tree view defined with just the field id.
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
pgpXtMDB1ZnHQ.pgp
Description: PGP signature
