Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
6704 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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 !!.

Imagine profil
Abandonează

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).

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.

Cel mai bun răspuns

Hi,

You can customize and save your view without this filter.

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iul. 25
882
1
mai 25
1598
1
mai 25
2590
2
mar. 25
1507
1
mar. 25
2571