跳至内容
菜单
此问题已终结

I need to be able to list quotations AND sale orders in one single screen. Now, this is an easy thing to do when you're able to call a specific action. However, I need to open a screen with the list using a function.


            return {

'name': _('Sale orders/quotations'),

'view_type': 'form',

'view_mode': 'tree',

'res_model': 'sale.order',

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

'domain': [('id', 'in', order_ids)],

'context':{},

}

This will always call a "default" action because, although I can specify a view, I cannot tell which action to run. So, I'm stuck.


Any ideas? It has to be made from within a function.


形象
丢弃
相关帖文 回复 查看 活动
3
7月 24
3011
1
3月 15
3112
2
3月 15
9451
1
6月 19
2342
1
11月 18
3689