SlideShare a Scribd company logo
How to Show Sample
Data in Tree and Kanban
View in Odoo 17
Enterprise
Introduction
Enterprise
In Odoo 17, sample data serves as a valuable resource for
users seeking to familiarize themselves with the
functionalities and capabilities of the software prior to
integrating their own information. In this slide we are going
to discuss about how to show sample data to a tree view and
a kanban view.
Enterprise
Create a new model
● Create a new model student.record and add some fields
to it
Class StudentRecord(models.Model):
_inherit = ‘student.record’
name = fields.Char(‘Student’)
age = fields.Float(‘Age’)
Enterprise
Create tree view for the model
● Define a tree view for the corresponding model
<record id="rental_order_contract_view_tree" model="ir.ui.view">
<field name="name">student.record.view.tree</field>
<field name="model">student.record</field>
<field name="arch" type="xml">
<tree sample=”1”>
<field name="reference_no"/>
<field name="partner_id"/>
</tree>
</field>
</record>
Enterprise
● Adding sample=”1” while defining a view to loading
sample data to the corresponding view type.
● On the creation of new database it will load a sample
data with required fields on the corresponding views
that we have given.
Enterprise
Create kanban view for the model
● Defining a kanban view to add sample
<record id="student_kanban" model="ir.ui.view">
<field name="name">student.kanban</field>
<field name="model">student.record</field>
<field name="arch" type="xml">
<kanban class="school_student_view" string="Student Details" sample="1"> <templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
<div class="o_kanban_content">
<strong><div class="oe_kanban_project_list o_kanban_record_subtitle">
<field name="admn_code"/></div></strong>
<div>Student :<field name="name"/></div>
<div>Age:<field name="age"/></div></div></div>
</t>
</templates>
</kanban>
</field>
</record>
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

PPTX
Views in Odoo 17 - Kanban View in odoo 17
PPTX
How to Create Cohort View in Odoo 17 - Odoo 17 Slides
PPTX
How to Open a Wizard When Clicking on the Kanban Tile in Odoo 18
PPTX
Model Attribute _rec_name in the Odoo 17
PPTX
Default Group By Expand Option In Odoo 17
PPTX
Tutorial: Develop an App with the Odoo Framework
PDF
Develop an App with the Odoo Framework
PPTX
How to Define Menu & Actions in Odoo 18 - Odoo 18 Slides
Views in Odoo 17 - Kanban View in odoo 17
How to Create Cohort View in Odoo 17 - Odoo 17 Slides
How to Open a Wizard When Clicking on the Kanban Tile in Odoo 18
Model Attribute _rec_name in the Odoo 17
Default Group By Expand Option In Odoo 17
Tutorial: Develop an App with the Odoo Framework
Develop an App with the Odoo Framework
How to Define Menu & Actions in Odoo 18 - Odoo 18 Slides

Similar to How to Show Sample Data in Tree and Kanban View in Odoo 17 (20)

PPTX
HOW TO CREATE A MODULE IN ODOO
PPTX
How to Make a Field Storable in Odoo 17 - Odoo Slides
PPTX
How To Update One2many Field From OnChange of Field in Odoo 17
PPTX
What is Property Fields in Odoo 17 ERP Module
PPTX
Views in Odoo - Advanced Views - Pivot View in Odoo 17
PPTX
How to Give a Domain for a Field in Odoo 17
PDF
Conceptual Data Modelling Using ER-models
PPTX
How to Add Sort Option in Website Portal Odoo 17
PPTX
How to create Security Group and Manage Access Rights in Odoo 18
PDF
Odoo - Backend modules in v8
PPTX
MongoDB Workshop.pptx computer science and engineering
PDF
Django cheat sheet
PPTX
Develop an App with the Odoo Framework.pptx
PPTX
Neo4j.pptx
PPTX
Elaboration
PPTX
Security, Groups, and Access Rights in Odoo 17
PPTX
Data Modelling..pptx
PPTX
Entity-Relationship Model.pptx data modeling
PPTX
How to Create a Custom Web Form View in Odoo 17
PPTX
How to use search_count() method in Odoo 18
HOW TO CREATE A MODULE IN ODOO
How to Make a Field Storable in Odoo 17 - Odoo Slides
How To Update One2many Field From OnChange of Field in Odoo 17
What is Property Fields in Odoo 17 ERP Module
Views in Odoo - Advanced Views - Pivot View in Odoo 17
How to Give a Domain for a Field in Odoo 17
Conceptual Data Modelling Using ER-models
How to Add Sort Option in Website Portal Odoo 17
How to create Security Group and Manage Access Rights in Odoo 18
Odoo - Backend modules in v8
MongoDB Workshop.pptx computer science and engineering
Django cheat sheet
Develop an App with the Odoo Framework.pptx
Neo4j.pptx
Elaboration
Security, Groups, and Access Rights in Odoo 17
Data Modelling..pptx
Entity-Relationship Model.pptx data modeling
How to Create a Custom Web Form View in Odoo 17
How to use search_count() method in Odoo 18
Ad

More from Celine George (20)

PPTX
How to Implement OWL Notification Service in Odoo 18
PPTX
Tracking Profit Margins in Sales Orders with Odoo 18
PPTX
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
PPTX
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
PPTX
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
PPTX
How to Add New Applicants in Odoo 18 Recruitment
PPTX
How to Analyze the Recruitment Process in Odoo 18 Recruitment
PPTX
How to Manage Referral Reporting in Odoo 18 Referrals
PPTX
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
How to Manage Bill Control Policy in Odoo 18
PPTX
How to Manage Loyalty Points in Odoo 18 Sales
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PPTX
How to Manage Global Discount in Odoo 18 POS
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
How to Implement OWL Notification Service in Odoo 18
Tracking Profit Margins in Sales Orders with Odoo 18
How to Configure Outgoing Shipment in 3 Steps Using Odoo 18
How to Configure Outgoing Shipment in 1 Step Using Odoo 18.pptx
How to Configure Outgoing Shipment in 2 Steps Using Odoo 18
How to Add New Applicants in Odoo 18 Recruitment
How to Analyze the Recruitment Process in Odoo 18 Recruitment
How to Manage Referral Reporting in Odoo 18 Referrals
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
Revamp in MTO Odoo 18 Inventory - Odoo Slides
How to Manage Starshipit in Odoo 18 - Odoo Slides
How to Manage Bill Control Policy in Odoo 18
How to Manage Loyalty Points in Odoo 18 Sales
Odoo 18 Sales_ Managing Quotation Validity
How to Manage Global Discount in Odoo 18 POS
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Tips Management in Odoo 18 POS - Odoo Slides
How to Close Subscription in Odoo 18 - Odoo Slides
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
How to Track Skills & Contracts Using Odoo 18 Employee
Ad

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Cell Types and Its function , kingdom of life
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Lesson notes of climatology university.
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Complications of Minimal Access Surgery at WLH
Sports Quiz easy sports quiz sports quiz
Insiders guide to clinical Medicine.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Cell Types and Its function , kingdom of life
Pre independence Education in Inndia.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Lesson notes of climatology university.
TR - Agricultural Crops Production NC III.pdf
O5-L3 Freight Transport Ops (International) V1.pdf

How to Show Sample Data in Tree and Kanban View in Odoo 17

  • 1. How to Show Sample Data in Tree and Kanban View in Odoo 17 Enterprise
  • 2. Introduction Enterprise In Odoo 17, sample data serves as a valuable resource for users seeking to familiarize themselves with the functionalities and capabilities of the software prior to integrating their own information. In this slide we are going to discuss about how to show sample data to a tree view and a kanban view.
  • 3. Enterprise Create a new model ● Create a new model student.record and add some fields to it Class StudentRecord(models.Model): _inherit = ‘student.record’ name = fields.Char(‘Student’) age = fields.Float(‘Age’)
  • 4. Enterprise Create tree view for the model ● Define a tree view for the corresponding model <record id="rental_order_contract_view_tree" model="ir.ui.view"> <field name="name">student.record.view.tree</field> <field name="model">student.record</field> <field name="arch" type="xml"> <tree sample=”1”> <field name="reference_no"/> <field name="partner_id"/> </tree> </field> </record>
  • 5. Enterprise ● Adding sample=”1” while defining a view to loading sample data to the corresponding view type. ● On the creation of new database it will load a sample data with required fields on the corresponding views that we have given.
  • 6. Enterprise Create kanban view for the model ● Defining a kanban view to add sample <record id="student_kanban" model="ir.ui.view"> <field name="name">student.kanban</field> <field name="model">student.record</field> <field name="arch" type="xml"> <kanban class="school_student_view" string="Student Details" sample="1"> <templates> <t t-name="kanban-box"> <div t-attf-class="oe_kanban_card oe_kanban_global_click"> <div class="o_kanban_content"> <strong><div class="oe_kanban_project_list o_kanban_record_subtitle"> <field name="admn_code"/></div></strong> <div>Student :<field name="name"/></div> <div>Age:<field name="age"/></div></div></div> </t> </templates> </kanban> </field> </record>
  • 7. 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