How is the way to refresh a tree/form view from other tree view with on_change?

55 views
Skip to first unread message

Fabyc

unread,
May 6, 2016, 11:16:40 AM5/6/16
to tryton
Hi.

If I have a tree view (TV1) and I have another one (TV2), how is it the way with 
on_change to refresh the data of the other tree view?

Example:
- TV1 has 50 records
- Select any of the records
- Data on TV2 now displays a group of records. Based on the selected record, TV2 data is refreshed.

Thanks in advanced

--
Regards

Cédric Krier

unread,
May 6, 2016, 1:00:04 PM5/6/16
to tryton
I guess you are talking about dashboard.
You can use the Eval on the action id of the other actions like
explained in the doc:
http://doc.tryton.org/4.0/trytond/doc/topics/views/index.html#board-view
You can find an example in the timesheet module: work_hours_board

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

Fabyc

unread,
May 7, 2016, 10:38:04 AM5/7/16
to tryton
On Friday, May 6, 2016 at 12:00:04 PM UTC-5, Cédric Krier wrote:
On 2016-05-06 08:16, Fabyc wrote:
> Hi.
>
> If I have a tree view (TV1) and I have another one (TV2), how is it the way
> with
> on_change to refresh the data of the other tree view?
>
> Example:
> - TV1 has 50 records
> - Select any of the records
> - Data on TV2 now displays a group of records. Based on the selected
> record, TV2 data is refreshed.

I guess you are talking about dashboard.
You can use the Eval on the action id of the other actions like
explained in the doc:
http://doc.tryton.org/4.0/trytond/doc/topics/views/index.html#board-view
You can find an example in the timesheet module: work_hours_board

OK.

Thanks
Reply all
Reply to author
Forward
0 new messages