Odoo Help

0

Display all quotations by default

By
Neil
on 2/5/15, 8:46 AM 1,202 views

In Odoo v8, when I click quotations, it shows the quotations that my user created by default. Is there a way to show all quotations by default? (Remove the 'My' filter?).

Thanks!

1

Try the following:

Edit

You can replace the filter by following:

<filter name="my_sale_orders_filter" position="replace"/> ... but it may not work

So try the following..

Over ride the action and remove the attribute from the context menu

        <record id="sale.action_orders" model="ir.actions.act_window">
            <field name="name">Sales Orders</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">sale.order</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar,graph</field>
            <field name="search_view_id" ref="sale.view_sales_order_filter"/>
            <field name="context">{}
            </field>
            <field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">
                    Click to create a quotation that can be converted into a sales
                    order.
                </p><p>
                    Odoo will help you efficiently handle the complete sales flow:
                    quotation, sales order, delivery, invoicing and payment.
                </p>
            </field>
        </record>

Hope this helps !!.

I would agree that this should work, but for me it doesn't. I did this and even checked in Odoo -> Settings -> Actions -> Window Actions -> Search for 'quot' -> Open the action, there I can see that context = '{}' but when I go to the quotations menu I still get the 'My' filter. A workaround for this is clearing all filters and then choose save current filter then check use as default. The only problem here (AFAIK) is that you will have to do this for every user. So in systems where there are a lot of users with access to sales, it will be a hell of an edit (for me at least, since I dislike manual, repetitive jobs).

Cats&Dogs bvba, SonnyV
on 10/1/15, 12:02 PM

Ok, my bad. I forgot to add the very important 'sale.' before my action_id, resulting in my custom module creating another window action. It is fixed now.

Cats&Dogs bvba, SonnyV
on 10/1/15, 12:08 PM
1
Bruno JOLIVEAU
On 2/6/15, 2:30 PM

Hi,

You can customize and save your view without this filter.

 

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/5/15, 8:46 AM
Seen: 1202 times
Last updated: 3/16/15, 8:10 AM