On 12 Jun 03:21, Dundivet wrote:
> Hi there, I need to know how to do the following in Tryton
> 
> Assuming I have two tables: Person and Month which have the following 
> columns:
> Person: ['ID_person', 'Person name', 'ID_month', 'month pay']
> Month: ['ID_month', 'Month name', 'days of month']
> 
> I need to show a list of Persons (grouped by ID_person) and Total Payment 
> of months worked. When you double-click on person you must switch to 
> another view where shown that person payments broked down into months and 
> the corresponding month's payment.

Indeed you can create an action window with a keyword `tree_open` and
activate on the list view the `keyword_open` attribute. The action
should have a domain using the active_id (it will be the id of the
record selected). This will make the view behaves a little bit like a
menu.


But also you could try to create a tree using the new UnionMixin (only
on trunk) which will group under the same Model both table (+ probably
another Model with sql_table for the grouping).

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpZ8_snckQLU.pgp
Description: PGP signature

Reply via email to