Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


List quotations + sale orders from within a function

Odooveloper (by Rui Franco)
on 2/12/16, 8:07 AM 265 views

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)],



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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/12/16, 8:07 AM
Seen: 265 times
Last updated: 2/12/16, 8:07 AM