Skip to Content
Menu
This question has been flagged

Hello,


I have set the auto refresh for the kanban view.

Auto refresh is doing well but when it auto refresh, i can't able to click on kanban view.


Here is my code for auto refresh :-


def return_action(self):

    model_obj = self.env['ir.model.data']

    data_id = model_obj._get_id('work_order', 'filing_main_menu_bag_detail_kanban_view')

    view_id = model_obj.browse(data_id).res_id

    return {

        'type': 'ir.actions.act_window',

        'name': _('Bag Detail'),

        'res_model': 'bag.detail',

        'view_type': 'kanban',

        'view_mode': 'kanban',

        'view_id' : view_id,

        'target': 'current',

        'nodestroy': True,

    }


Hope for satisfactory  reply.

Thanks,

Avatar
Discard
Related Posts Replies Views Activity
0
Jul 24
390
3
Dec 23
20207
2
Oct 16
4318
1
Jul 16
3938
1
May 16
11959