Skip to Content
Menu
This question has been flagged
1 Reply
2775 Views

Hi,


I've entered on Settings -> Technical -> User Interface -> Menu Items


I've searched for Quotations to find the action that happens when the user clicks on Menu Sales -> Order -> Quotation


Inside that action there are two fields that I can't figure out what are they used for: View Ref and Search View. Ref.


What do they mean?



Avatar
Discard
Best Answer

These fields define which views Odoo will use. 

They usually have a value when there is more than one base View defined.


You can see that there is a different View for Quotations than for Sales Orders even though they use the same model:

Quotations:


Sales Orders:





Avatar
Discard
Author

Still not totally clear, but let me go straight to the point:

I'm trying to alter Quotations action to display only "tree view" and "form" and limit display to 11 rows

Code:

<record id="sale.action_quotations_with_onboarding" model="ir.actions.act_window">

<field name="name">Quotations</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">sale.order</field>

<field name="view_mode">tree,form</field>

<field name="context">{'search_default_my_quotation': 1}</field>

<field name="domain">[('state', 'in', ('draft', 'sent', 'waiting','sale','done'))]</field>

<field name="limit">11</field>

</record>

"Limit" works fine, but "view_mode" does not work.

Does this have something to do with View Ref?