On 24/11/13 22:26 -0800, appu wrote: > Hi Devs, > Could anybody please help me with following two questions: > 1) > I searched a lot in tryton documentation and could not find any > example of how to show results from more than one model in tree view.
You can not because Tryton uses views which are linked to one Model. > I have model A and model B. and I want to show all attributes of model > A and some attributes of model B in same tree view based on date ascending > order. > saw some thing in open-ERP like we can make union of two models > results with sql query and create view in init menthod. is there some > thing like this in Tryton? First, if your two models are so similar that they share almost all their fields, you should first think about merging them. Otherwise, it is possible to define a readonly Model for which you are not using an existing table but the result of a query. See http://doc.tryton.org/3.0/trytond/doc/ref/models/models.html?highlight=query#trytond.model.ModelSQL.table_query > 2) how do we show free text of field attributes in form view? I know we > can make read only of Char field. but still that shows text field box. > Please help me if there is a way to show only free text ( non editable > like Label). I'm not sure to understand your need here. But there is the Text field http://doc.tryton.org/3.0/trytond/doc/ref/models/fields.html?highlight=text#trytond.model.fields.Text But as you are talking about label, if you mean static text on a view, just use label tag http://doc.tryton.org/3.0/trytond/doc/topics/views/index.html?highlight=label#label -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgp49WFTHw4eE.pgp
Description: PGP signature
