SlideShare a Scribd company logo
1 of 11
Advanced Views -
Calendar View in Odoo 17
Enterprise
Introduction
Enterprise
As Odoo is a comprehensive business management software
suite, the Calendar view is a powerful tool used to visualize
and manage events, tasks, meetings, deadlines and other
time-sensitive activities across various modules such as CRM,
Project management, HR modules and more.
In this slide, we can just go through the the steps of creating a
calendar view for a module in Odoo 17.
Enterprise
First, lets create a module, here for example
hospital_management. Lets create a simple model which
stores data of the patients visited. And just define some basic
fields, menus, tree view, form view for the model.
Create some records as for example
Enterprise
Creating the Calendar view
Under the ‘views’ directory, we’ve defined an xml file where all
the views are defined. Create a calendar view for the model
using the <calendar> tag in the same file.
Enterprise
First, add the calendar view also in the view_mode of the action
for the model.
<record id="action_view_patient_card"
model="ir.actions.act_window">
<field name="name">Patient Card</field>
<field name="res_model">patient.details</field>
<field
name="view_mode">tree,form,calendar</field>
</record>
Enterprise
Lets check the xml code we’ve created for the calendar view
<!-- PATIENT DETAILS CALENDAR VIEW →
<record id="patient_details_view_calendar"
model="ir.ui.view">
<field name="name">patient.details.view.calendar</field>
<field name="model">patient.details</field>
<field name="arch" type="xml">
<calendar string="Patients List"
date_start="consult_start_date"
date_stop="consult_end_date"
event_open_popup="form"
mode="month"
color="patient_name_id">
<field name="patient_id"/>
<field name="patient_name_id"
avatar_field="image_1920"/>
<field name="create_date"/>
</calendar>
</field>
</record>
Enterprise
Here, there are some attributes used for the calendar
view. Let’s check, for what each of them are used.
● date_start : Name of the field holding the start date for
the calendar event. If we provide this, Odoo will take the
value of this field’s value as the starting date. Datetime
fields are given here.
● date_end: Ending date of the calendar event
● event_open_popup: If set to true, the calendar view will
open events (or records) in a FormViewDialog. Otherwise,
it will open in a new form (do_action)
● mode: Specifies the default mode of displaying the
calendar data. Possible values are year, month, week and
day.
Enterprise
● color : To show the records in different color based on a
particular field. That field name can be given as the value
here. It’ll be shown as checkboxes on the sidebar of the
window.
● string: The text string to display.
● Along with these, form_view_id, quick_create, create,
delete, etc can also be used as attributes.
Enterprise
Thus, the Calendar view will look like
Enterprise
On clicking on any of the grid, a popup window will open
These marked fields are those which we’ve added inside the
calendar view using <field> tag
For More Info.
Check our company website for related
blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
Enterprise
www.cybrosys.com

More Related Content

Similar to Advanced Views - Calendar View in Odoo 17

Project Management Quick Reference Guide for Microsoft Project 2007
Project Management Quick Reference Guide for Microsoft Project 2007Project Management Quick Reference Guide for Microsoft Project 2007
Project Management Quick Reference Guide for Microsoft Project 2007Toney Sisk
 
Project NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxProject NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxwkyra78
 
Using Google Sheets and Google Forms as a Timesheet Tracking App
Using Google Sheets and Google Forms as a Timesheet Tracking AppUsing Google Sheets and Google Forms as a Timesheet Tracking App
Using Google Sheets and Google Forms as a Timesheet Tracking AppChristopher Enea
 
Listview
ListviewListview
ListviewSRIMCA
 
Say hola to new orange scrum enterprise updates
Say hola to new orange scrum enterprise updatesSay hola to new orange scrum enterprise updates
Say hola to new orange scrum enterprise updatesOrangescrum
 
Project 2007 full handout
Project 2007 full handoutProject 2007 full handout
Project 2007 full handoutZenawi Mehari
 
Project Share Feature List - MS Project Services
Project Share Feature List - MS Project ServicesProject Share Feature List - MS Project Services
Project Share Feature List - MS Project Servicesmahyars
 
Primavera Project Management P6 Course session 5
Primavera Project Management P6 Course session 5Primavera Project Management P6 Course session 5
Primavera Project Management P6 Course session 5Mohamed Adel
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfacesC.o. Nieto
 
oracle_financials_terms.pdf
oracle_financials_terms.pdforacle_financials_terms.pdf
oracle_financials_terms.pdfkmani5
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivasAli Ibrahim
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winformmrtom16071980
 
Odoo 13 field service management
Odoo 13 field service managementOdoo 13 field service management
Odoo 13 field service managementPlanetOdoo
 
P6 Version 7 Tricks and Traps
P6 Version 7 Tricks and TrapsP6 Version 7 Tricks and Traps
P6 Version 7 Tricks and TrapsInSync Conference
 
Defining Calendar View in Odoo 15
Defining Calendar View in Odoo 15Defining Calendar View in Odoo 15
Defining Calendar View in Odoo 15Celine George
 

Similar to Advanced Views - Calendar View in Odoo 17 (20)

Project Management Quick Reference Guide for Microsoft Project 2007
Project Management Quick Reference Guide for Microsoft Project 2007Project Management Quick Reference Guide for Microsoft Project 2007
Project Management Quick Reference Guide for Microsoft Project 2007
 
Project NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docxProject NameCommunication PlanOverviewEffective and .docx
Project NameCommunication PlanOverviewEffective and .docx
 
Using Google Sheets and Google Forms as a Timesheet Tracking App
Using Google Sheets and Google Forms as a Timesheet Tracking AppUsing Google Sheets and Google Forms as a Timesheet Tracking App
Using Google Sheets and Google Forms as a Timesheet Tracking App
 
Listview
ListviewListview
Listview
 
Say hola to new orange scrum enterprise updates
Say hola to new orange scrum enterprise updatesSay hola to new orange scrum enterprise updates
Say hola to new orange scrum enterprise updates
 
Project 2007 full handout
Project 2007 full handoutProject 2007 full handout
Project 2007 full handout
 
Project Share Feature List - MS Project Services
Project Share Feature List - MS Project ServicesProject Share Feature List - MS Project Services
Project Share Feature List - MS Project Services
 
Primavera Project Management P6 Course session 5
Primavera Project Management P6 Course session 5Primavera Project Management P6 Course session 5
Primavera Project Management P6 Course session 5
 
Odoo views
Odoo viewsOdoo views
Odoo views
 
Pras s curve final
Pras s curve finalPras s curve final
Pras s curve final
 
S Curves Made Easy With Primavera P6
S Curves Made Easy With Primavera P6S Curves Made Easy With Primavera P6
S Curves Made Easy With Primavera P6
 
Pras s curve final
Pras s curve finalPras s curve final
Pras s curve final
 
MS Project Guide.pdf
MS Project Guide.pdfMS Project Guide.pdf
MS Project Guide.pdf
 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
 
oracle_financials_terms.pdf
oracle_financials_terms.pdforacle_financials_terms.pdf
oracle_financials_terms.pdf
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivas
 
Session 4 Bai 4 ve winform
Session 4 Bai 4 ve winformSession 4 Bai 4 ve winform
Session 4 Bai 4 ve winform
 
Odoo 13 field service management
Odoo 13 field service managementOdoo 13 field service management
Odoo 13 field service management
 
P6 Version 7 Tricks and Traps
P6 Version 7 Tricks and TrapsP6 Version 7 Tricks and Traps
P6 Version 7 Tricks and Traps
 
Defining Calendar View in Odoo 15
Defining Calendar View in Odoo 15Defining Calendar View in Odoo 15
Defining Calendar View in Odoo 15
 

More from Celine George

Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Celine George
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17Celine George
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryCeline George
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales AppHow to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales AppCeline George
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

More from Celine George (20)

Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales AppHow to Make Down Payments in Odoo 17 Sales App
How to Make Down Payments in Odoo 17 Sales App
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptxVishal Singh
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 

Recently uploaded (20)

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 

Advanced Views - Calendar View in Odoo 17

  • 1. Advanced Views - Calendar View in Odoo 17 Enterprise
  • 2. Introduction Enterprise As Odoo is a comprehensive business management software suite, the Calendar view is a powerful tool used to visualize and manage events, tasks, meetings, deadlines and other time-sensitive activities across various modules such as CRM, Project management, HR modules and more. In this slide, we can just go through the the steps of creating a calendar view for a module in Odoo 17.
  • 3. Enterprise First, lets create a module, here for example hospital_management. Lets create a simple model which stores data of the patients visited. And just define some basic fields, menus, tree view, form view for the model. Create some records as for example
  • 4. Enterprise Creating the Calendar view Under the ‘views’ directory, we’ve defined an xml file where all the views are defined. Create a calendar view for the model using the <calendar> tag in the same file.
  • 5. Enterprise First, add the calendar view also in the view_mode of the action for the model. <record id="action_view_patient_card" model="ir.actions.act_window"> <field name="name">Patient Card</field> <field name="res_model">patient.details</field> <field name="view_mode">tree,form,calendar</field> </record>
  • 6. Enterprise Lets check the xml code we’ve created for the calendar view <!-- PATIENT DETAILS CALENDAR VIEW → <record id="patient_details_view_calendar" model="ir.ui.view"> <field name="name">patient.details.view.calendar</field> <field name="model">patient.details</field> <field name="arch" type="xml"> <calendar string="Patients List" date_start="consult_start_date" date_stop="consult_end_date" event_open_popup="form" mode="month" color="patient_name_id"> <field name="patient_id"/> <field name="patient_name_id" avatar_field="image_1920"/> <field name="create_date"/> </calendar> </field> </record>
  • 7. Enterprise Here, there are some attributes used for the calendar view. Let’s check, for what each of them are used. ● date_start : Name of the field holding the start date for the calendar event. If we provide this, Odoo will take the value of this field’s value as the starting date. Datetime fields are given here. ● date_end: Ending date of the calendar event ● event_open_popup: If set to true, the calendar view will open events (or records) in a FormViewDialog. Otherwise, it will open in a new form (do_action) ● mode: Specifies the default mode of displaying the calendar data. Possible values are year, month, week and day.
  • 8. Enterprise ● color : To show the records in different color based on a particular field. That field name can be given as the value here. It’ll be shown as checkboxes on the sidebar of the window. ● string: The text string to display. ● Along with these, form_view_id, quick_create, create, delete, etc can also be used as attributes.
  • 9. Enterprise Thus, the Calendar view will look like
  • 10. Enterprise On clicking on any of the grid, a popup window will open These marked fields are those which we’ve added inside the calendar view using <field> tag
  • 11. For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com