This is my code..bt i didn't get any view in my model..is there any issue with my code..pls help me in this quickly
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
Hi,
Did you added the calender in the view mode of the action of the corresponding menu ? If not add it.
sample,
<record id="action_invoice_tree" model="ir.actions.act_window">
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar,graph</field>
<field name="view_id" ref="invoice_tree"/>
<field name="context">{'type':'out_invoice'}</field>
<field name="search_view_id" ref="view_account_invoice_filter"/>
</record>
Nb : didn't checked is there anything wrong in your code.
Thanks
i have already added it in the action page..but no changes in the view..
This is my action page code
<record id="open_booking_info_action" model="ir.actions.act_window">
<field name="name">Booking Info</field>
<field name="res_model">booking.info</field>
<field name="view_type">form</field>
<field name="view_mode">tree,calender,form</field>
</record>
Is that necessary to add these code in action page for calender view<field name="view_id" ref="invoice_tree"/>
<field name="context">{'type':'out_invoice'}</field>
<field name="search_view_id" ref="view_account_invoice_filter"/>
if needs could you please explain the needs of those three fields
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up