In the Odoo backend, Kanban views offer an intuitive, visual way of managing tasks, projects, and workflows. Kanban views are just like a card type of rectangular view which we can get the major details of the model in which it is designed.
How to Create Cohort View in Odoo 17 - Odoo 17 SlidesCeline George
Odoo has a variety of view kinds, including list, form, tree, kanban, graph, pivot, calendar, cohort, and more. Cohort views are a kind of reporting view in Odoo that let us monitor and evaluate user behavior across time. Rows and columns are displayed in the cohort view.
Views in Odoo 17 - Kanban View in odoo 17Celine George
Kanban view provide a visual representation of our data, making it easier to manage and track information. They present data in the form of cards, allowing for a more intuitive and user-friendly experience.
How to Show Sample Data in Tree and Kanban View in Odoo 17Celine George
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.
How To Extend Odoo Form View using js_class_Celine George
In Odoo, js_class is used in form views to link JavaScript classes to XML views. This allows developers to extend and customize the behavior of Odoo form views by leveraging the power of JavaScript. First we need to register a class in javascript for a particular view. When we add the same class for a form view, it injects the customized view into the form.
How to Create & Manage a Dashboard Using OWL in Odoo 17Celine George
A dashboard in Odoo is a user interface feature that provides a visual overview of key performance indicators (KPIs), metrics, and important data points relevant to a business. Dashboards are designed to present this information in an easy-to-read format, often using charts, graphs, and tables, to help users quickly assess the state of their business and make informed decisions.
How To Update One2many Field From OnChange of Field in Odoo 17Celine George
There can be chances when we need to update a One2many field when we change the value of any other fields in the form view of a record. In Odoo, we can do this. Let’s go with an example.
How to perform product search based on a custom field from the PoS screen of ...Celine George
Odoo 17 offers a robust solution for retail businesses, restaurants, and other point-of-sale environments. It’s features like User-Friendly Interface, Multi-Device Compatibility, Inventory Management, Payment Options, Customer Management makes the user so smooth to indulge with.
We know that, Odoo PoS screen opens up with all the retail sellable products on the screen just after creating the session once we are ready for the sale.
How to create Security Group and Manage Access Rights in Odoo 18Celine George
The Security groups and Access rights in Odoo 18 are used to control the user access to various modules and records within the system. Security groups allows us to group the users based on their roles or responsibilities.
How to Define Menu & Actions in Odoo 18 - Odoo 18 SlidesCeline George
In this slide, we will walk you through the process of defining menus and actions in Odoo 18, offering a step-by-step look at how to implement them with the necessary code.
Tutorial: Develop an App with the Odoo FrameworkOdoo
This document describes how to build an Odoo module for a plant nursery management system. It covers the module architecture including models, views, menus, and basic CRUD operations using the ORM. It provides examples of model definitions, form and kanban views, search views, computed fields, constraints, and onchange methods. The goal is to manage plants, customers, and orders to track inventory and sales.
The document provides an overview and guidelines for using design patterns with Django. It discusses common patterns for organizing URLs, models, views, and generic views. Some key patterns covered include using multiple managers and custom manager methods for models, handling GET and POST requests in the same view function, and creating chainable and lazy querysets. The document acts as documentation for best practices when building Django applications and sites.
How to Create a Dynamic Snippet in Odoo 17Celine George
Dynamic snippets in Odoo 17 are modular components that allow for the dynamic display of content on web pages. These snippets can be tailored to showcase various types of information, such as product listings, testimonials, or promotional banners.
How to Create a Custom Web Form View in Odoo 17Celine George
Creating a custom web form view in Odoo 17 involves several key steps: defining the model, creating the view, setting up actions and menus, and defining the template and controller. Here’s a structured overview to guide you through the process:
A talk i had about the solid principles at AngularJS-IL meetup #15. AngularJS is a great framework, it give you the tools you need to build robust single page web applications. Nut a good design and architecture are framework agnostic. By applying some well known object oriented principles to our angular application we can achieve more clean and modular code base.
For those who are in starting stage of Odoo development, it is a tough task for creating a new module. In this section let us look how to create a new module in the Odoo.
DjangoGirls Seoul 2017 11월 세미나에서 발표한 문서입니다.
- 소스 코드 : https://github.com/hannal/pieces-of-django-admin-djangogirls-seoul
- 각종 소식 : https://fb.com/hello.kaycha
Views in Odoo - Advanced Views - Pivot View in Odoo 17Celine George
In Odoo, the pivot view is a graphical representation of data that allows users to analyze and summarize large datasets quickly. It's a powerful tool for generating insights from your business data.
The pivot view in Odoo is a valuable tool for analyzing and summarizing large datasets, helping you gain insights into your business operations.
What is Mixin Class & How to Use Mixin Classes in Odoo 18Celine George
In programming, one key advantage of good code is its reusability. This approach helps reduce redundancy, save time on repetitive tasks, and shrink the overall codebase, leading to better maintainability.
What is Monkey Patching & How It Can Be Applied in Odoo 17Celine George
This slide explores the concept of "monkey patching," a technique used to augment existing functionality in Odoo 17. Let's delve into what monkey patching entails and how it can be implemented within the Odoo 17 environment.
How to Modify Existing Web Pages in Odoo 18Celine George
In this slide, we’ll discuss on how to modify existing web pages in Odoo 18. Web pages in Odoo 18 can also gather user data through user-friendly forms, encourage interaction through engaging features.
The document discusses how to personalize Oracle E-Business Suite forms using the new personalization feature introduced in release 11.5.10. It describes creating personalization rules on the personalization form to modify form properties, display messages, and activate special menus. Rules are triggered by conditions and applied based on the context. The personalization allows customizing forms without code changes and will work across upgrades. Step-by-step examples demonstrate changing a field label on the sales order form.
Personalize the forms how to oracle applications release 11.5.10 a technica...FITSFSd
The document discusses how to personalize Oracle E-Business Suite forms using the new personalization feature introduced in release 11.5.10. It describes creating personalization rules on the personalization form to modify form properties, display messages, and activate special menus. Rules are triggered by conditions and applied based on the context. The personalization allows customizing forms without code changes and will work with future upgrades. Step-by-step examples are provided to change a field label on the sales order form.
The document discusses Oracle's new personalization feature in release 11.5.10 that allows customizing forms without modifying code. It provides examples of changing field labels, displaying messages, and activating a special menu to launch a custom form. The personalization form defines rules and associated conditions, contexts, and actions to customize form behavior at runtime. This new method is easier and faster than the previous custom library approach.
How to Add Sort Option in Website Portal Odoo 17Celine George
Odoo provides a versatile approach to improving the user interface on our website portal by enabling the addition of sorting features customized to our requirements.
This document summarizes the changes made to Django's admin interface with the introduction of newforms. Key changes include decoupling the admin from models by defining ModelAdmin classes separately in admin.py, using formsets and model formsets, adding support for generic inlines, and allowing media definitions on forms and widgets. Other enhancements include refactoring of inline handling and improvements to determining changed data in formsets.
Creating Single Page Web App using Backbone JSAkshay Mathur
This was presented during the workshop on the topic. The complete code of the app that was created during the workshop is available at Github https://github.com/mathurakshay/explore-venues
How to Add Customer Note in Odoo 18 POS - Odoo SlidesCeline George
In this slide, we’ll discuss on how to add customer note in Odoo 18 POS module. Customer Notes in Odoo 18 POS allow you to add specific instructions or information related to individual order lines or the entire order.
How to Create A Todo List In Todo of Odoo 18Celine George
In this slide, we’ll discuss on how to create a Todo List In Todo of Odoo 18. Odoo 18’s Todo module provides a simple yet powerful way to create and manage your to-do lists, ensuring that no task is overlooked.
Ad
More Related Content
Similar to How to Open a Wizard When Clicking on the Kanban Tile in Odoo 18 (20)
How to Define Menu & Actions in Odoo 18 - Odoo 18 SlidesCeline George
In this slide, we will walk you through the process of defining menus and actions in Odoo 18, offering a step-by-step look at how to implement them with the necessary code.
Tutorial: Develop an App with the Odoo FrameworkOdoo
This document describes how to build an Odoo module for a plant nursery management system. It covers the module architecture including models, views, menus, and basic CRUD operations using the ORM. It provides examples of model definitions, form and kanban views, search views, computed fields, constraints, and onchange methods. The goal is to manage plants, customers, and orders to track inventory and sales.
The document provides an overview and guidelines for using design patterns with Django. It discusses common patterns for organizing URLs, models, views, and generic views. Some key patterns covered include using multiple managers and custom manager methods for models, handling GET and POST requests in the same view function, and creating chainable and lazy querysets. The document acts as documentation for best practices when building Django applications and sites.
How to Create a Dynamic Snippet in Odoo 17Celine George
Dynamic snippets in Odoo 17 are modular components that allow for the dynamic display of content on web pages. These snippets can be tailored to showcase various types of information, such as product listings, testimonials, or promotional banners.
How to Create a Custom Web Form View in Odoo 17Celine George
Creating a custom web form view in Odoo 17 involves several key steps: defining the model, creating the view, setting up actions and menus, and defining the template and controller. Here’s a structured overview to guide you through the process:
A talk i had about the solid principles at AngularJS-IL meetup #15. AngularJS is a great framework, it give you the tools you need to build robust single page web applications. Nut a good design and architecture are framework agnostic. By applying some well known object oriented principles to our angular application we can achieve more clean and modular code base.
For those who are in starting stage of Odoo development, it is a tough task for creating a new module. In this section let us look how to create a new module in the Odoo.
DjangoGirls Seoul 2017 11월 세미나에서 발표한 문서입니다.
- 소스 코드 : https://github.com/hannal/pieces-of-django-admin-djangogirls-seoul
- 각종 소식 : https://fb.com/hello.kaycha
Views in Odoo - Advanced Views - Pivot View in Odoo 17Celine George
In Odoo, the pivot view is a graphical representation of data that allows users to analyze and summarize large datasets quickly. It's a powerful tool for generating insights from your business data.
The pivot view in Odoo is a valuable tool for analyzing and summarizing large datasets, helping you gain insights into your business operations.
What is Mixin Class & How to Use Mixin Classes in Odoo 18Celine George
In programming, one key advantage of good code is its reusability. This approach helps reduce redundancy, save time on repetitive tasks, and shrink the overall codebase, leading to better maintainability.
What is Monkey Patching & How It Can Be Applied in Odoo 17Celine George
This slide explores the concept of "monkey patching," a technique used to augment existing functionality in Odoo 17. Let's delve into what monkey patching entails and how it can be implemented within the Odoo 17 environment.
How to Modify Existing Web Pages in Odoo 18Celine George
In this slide, we’ll discuss on how to modify existing web pages in Odoo 18. Web pages in Odoo 18 can also gather user data through user-friendly forms, encourage interaction through engaging features.
The document discusses how to personalize Oracle E-Business Suite forms using the new personalization feature introduced in release 11.5.10. It describes creating personalization rules on the personalization form to modify form properties, display messages, and activate special menus. Rules are triggered by conditions and applied based on the context. The personalization allows customizing forms without code changes and will work across upgrades. Step-by-step examples demonstrate changing a field label on the sales order form.
Personalize the forms how to oracle applications release 11.5.10 a technica...FITSFSd
The document discusses how to personalize Oracle E-Business Suite forms using the new personalization feature introduced in release 11.5.10. It describes creating personalization rules on the personalization form to modify form properties, display messages, and activate special menus. Rules are triggered by conditions and applied based on the context. The personalization allows customizing forms without code changes and will work with future upgrades. Step-by-step examples are provided to change a field label on the sales order form.
The document discusses Oracle's new personalization feature in release 11.5.10 that allows customizing forms without modifying code. It provides examples of changing field labels, displaying messages, and activating a special menu to launch a custom form. The personalization form defines rules and associated conditions, contexts, and actions to customize form behavior at runtime. This new method is easier and faster than the previous custom library approach.
How to Add Sort Option in Website Portal Odoo 17Celine George
Odoo provides a versatile approach to improving the user interface on our website portal by enabling the addition of sorting features customized to our requirements.
This document summarizes the changes made to Django's admin interface with the introduction of newforms. Key changes include decoupling the admin from models by defining ModelAdmin classes separately in admin.py, using formsets and model formsets, adding support for generic inlines, and allowing media definitions on forms and widgets. Other enhancements include refactoring of inline handling and improvements to determining changed data in formsets.
Creating Single Page Web App using Backbone JSAkshay Mathur
This was presented during the workshop on the topic. The complete code of the app that was created during the workshop is available at Github https://github.com/mathurakshay/explore-venues
How to Add Customer Note in Odoo 18 POS - Odoo SlidesCeline George
In this slide, we’ll discuss on how to add customer note in Odoo 18 POS module. Customer Notes in Odoo 18 POS allow you to add specific instructions or information related to individual order lines or the entire order.
How to Create A Todo List In Todo of Odoo 18Celine George
In this slide, we’ll discuss on how to create a Todo List In Todo of Odoo 18. Odoo 18’s Todo module provides a simple yet powerful way to create and manage your to-do lists, ensuring that no task is overlooked.
Link your Lead Opportunities into Spreadsheet using odoo CRMCeline George
In Odoo 17 CRM, linking leads and opportunities to a spreadsheet can be done by exporting data or using Odoo’s built-in spreadsheet integration. To export, navigate to the CRM app, filter and select the relevant records, and then export the data in formats like CSV or XLSX, which can be opened in external spreadsheet tools such as Excel or Google Sheets.
How to Manage Purchase Alternatives in Odoo 18Celine George
Managing purchase alternatives is crucial for ensuring a smooth and cost-effective procurement process. Odoo 18 provides robust tools to handle alternative vendors and products, enabling businesses to maintain flexibility and mitigate supply chain disruptions.
How to Set warnings for invoicing specific customers in odooCeline George
Odoo 16 offers a powerful platform for managing sales documents and invoicing efficiently. One of its standout features is the ability to set warnings and block messages for specific customers during the invoicing process.
How to Manage Opening & Closing Controls in Odoo 17 POSCeline George
In Odoo 17 Point of Sale, the opening and closing controls are key for cash management. At the start of a shift, cashiers log in and enter the starting cash amount, marking the beginning of financial tracking. Throughout the shift, every transaction is recorded, creating an audit trail.
How to manage Multiple Warehouses for multiple floors in odoo point of saleCeline George
The need for multiple warehouses and effective inventory management is crucial for companies aiming to optimize their operations, enhance customer satisfaction, and maintain a competitive edge.
Odoo Inventory Rules and Routes v17 - Odoo SlidesCeline George
Odoo's inventory management system is highly flexible and powerful, allowing businesses to efficiently manage their stock operations through the use of Rules and Routes.
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...Celine George
Analytic accounts are used to track and manage financial transactions related to specific projects, departments, or business units. They provide detailed insights into costs and revenues at a granular level, independent of the main accounting system. This helps to better understand profitability, performance, and resource allocation, making it easier to make informed financial decisions and strategic planning.
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingCeline George
The Accounting module in Odoo 17 is a complete tool designed to manage all financial aspects of a business. Odoo offers a comprehensive set of tools for generating financial and tax reports, which are crucial for managing a company's finances and ensuring compliance with tax regulations.
Multi-currency in odoo accounting and Update exchange rates automatically in ...Celine George
Most business transactions use the currencies of several countries for financial operations. For global transactions, multi-currency management is essential for enabling international trade.
How to Subscribe Newsletter From Odoo 18 WebsiteCeline George
Newsletter is a powerful tool that effectively manage the email marketing . It allows us to send professional looking HTML formatted emails. Under the Mailing Lists in Email Marketing we can find all the Newsletter.
How to Manage a Customer Account in Odoo 17 SalesCeline George
In the sales module business can create and manage customer accounts and this includes details such as customer name, contact details and addresses, all other relevant datas. Customer account let your customers log in to see their documents
Ledger Posting in odoo Continental AccountingCeline George
Continental accounting records costs at the time of purchase. This means expenses related to buying products or services are logged when they occur in the ledger. While it follows GAAP principles, users can choose which accounts to debit or credit.
How to Create & Manage a New User Menu in Odoo 18Celine George
In this slide, we’ll discuss on how to create and manage a new user menu in Odoo 18. The user menu in Odoo acts as a centralized hub for quick access to essential features, enabling efficient navigation through documentation, customization options, and user-specific actions.
How to Add Customer Rating Mixin in the Odoo 18Celine George
In this slide, we’ll discuss on how to add customer rating mixin in the Odoo 18. Every organization needs good customer service to succeed in today's competitive business world. One practical way to improve customer satisfaction is to include customer feedback and ratings in your business processes.
How To Open The Form View Of Many2many Clicking Tag In Odoo 18Celine George
This slide outlines how to open the form view of a many2many field by clicking a tag in Odoo 18. We can enhance the functionality of the many2many field by allowing users to open the form view of a tag with a simple click.
The Types of Charts in Odoo 18 SpreadsheetCeline George
Let’s discuss about the different types of charts available in the very new version 18 of Odoo’s spreadsheet. We know that, spreadsheets in Odoo are highly useful for data management, reporting, and analysis, allowing us to handle large datasets effectively within the ERP system.
How to Translate Odoo 18 Website in Any Language with AICeline George
In Odoo 18, there may be instances where we need to translate website content, specific parts of it, or even individual words or sentences. Additionally, there may be cases where certain sections appear in different languages.
How to Manage Work Order Dependencies in Odoo 17 ManufacturingCeline George
When we manufacture certain products, some procedures may need to be completed before others may begin. To ensure that operations take place in the correct order, work order dependencies in the manufacturing module allow operations on a Bill of Materials (BoM) to be blocked by other operations that should be performed first.
In this ppt I have tried to give basic idea about Diabetic peripheral and autonomic neuropathy ..from Levine textbook,IWGDF guideline etc
Hope it will b helpful for trainee and physician
Understanding P–N Junction Semiconductors: A Beginner’s GuideGS Virdi
Dive into the fundamentals of P–N junctions, the heart of every diode and semiconductor device. In this concise presentation, Dr. G.S. Virdi (Former Chief Scientist, CSIR-CEERI Pilani) covers:
What Is a P–N Junction? Learn how P-type and N-type materials join to create a diode.
Depletion Region & Biasing: See how forward and reverse bias shape the voltage–current behavior.
V–I Characteristics: Understand the curve that defines diode operation.
Real-World Uses: Discover common applications in rectifiers, signal clipping, and more.
Ideal for electronics students, hobbyists, and engineers seeking a clear, practical introduction to P–N junction semiconductors.
Exploring Substances:
Acidic, Basic, and
Neutral
Welcome to the fascinating world of acids and bases! Join siblings Ashwin and
Keerthi as they explore the colorful world of substances at their school's
National Science Day fair. Their adventure begins with a mysterious white paper
that reveals hidden messages when sprayed with a special liquid.
In this presentation, we'll discover how different substances can be classified as
acidic, basic, or neutral. We'll explore natural indicators like litmus, red rose
extract, and turmeric that help us identify these substances through color
changes. We'll also learn about neutralization reactions and their applications in
our daily lives.
by sandeep swamy
High-performance liquid chromatography (HPLC) is a sophisticated analytical technique used to separate, identify, and quantify the components of a mixture. It involves passing a sample dissolved in a mobile phase through a column packed with a stationary phase under high pressure, allowing components to separate based on their interaction with the stationary phase.
Separation:
HPLC separates components based on their differing affinities for the stationary phase. The components that interact more strongly with the stationary phase will move more slowly through the column, while those that interact less strongly will move faster.
Identification:
The separated components are detected as they exit the column, and the time at which each component exits the column can be used to identify it.
Quantification:
The area of the peak on the chromatogram (the graph of detector response versus time) is proportional to the amount of each component in the sample.
Principle:
HPLC relies on a high-pressure pump to force the mobile phase through the column. The high pressure allows for faster separations and greater resolution compared to traditional liquid chromatography methods.
Mobile Phase:
The mobile phase is a solvent or a mixture of solvents that carries the sample through the column. The composition of the mobile phase can be adjusted to optimize the separation of different components.
Stationary Phase:
The stationary phase is a solid material packed inside the column that interacts with the sample components. The type of stationary phase is chosen based on the properties of the components being separated.
Applications of HPLC:
Analysis of pharmaceutical compounds: HPLC is widely used for the analysis of drugs and their metabolites.
Environmental monitoring: HPLC can be used to analyze pollutants in water and soil.
Food chemistry: HPLC is used to analyze the composition of food products.
Biochemistry: HPLC is used to analyze proteins, peptides, and nucleic acids.
Vitamins Chapter-7, Biochemistry and clinical pathology, D.Pharm 2nd yearARUN KUMAR
Definition and classification with examples
Sources, chemical nature, functions, coenzyme form, recommended dietary requirements, deficiency diseases of fat- and water-soluble vitamins
Envenomation is the process by which venom is injected by the bite or sting of a venomous animal such as a snake, scorpion, spider, or insect. Arthropod bite is nothing but a sharp bite or sting by ants, fruit flies, bees, beetles, moths, or hornets. Though not a serious condition, arthropod bite can be extremely painful, with redness and mild to severe swelling around the site of the bite
A measles outbreak originating in West Texas has been linked to confirmed cases in New Mexico, with additional cases reported in Oklahoma and Kansas. The current case count is 771 from Texas, New Mexico, Oklahoma, and Kansas. 72 individuals have required hospitalization, and 3 deaths, 2 children in Texas and one adult in New Mexico. These fatalities mark the first measles-related deaths in the United States since 2015 and the first pediatric measles death since 2003.
The YSPH Virtual Medical Operations Center Briefs (VMOC) were created as a service-learning project by faculty and graduate students at the Yale School of Public Health in response to the 2010 Haiti Earthquake. Each year, the VMOC Briefs are produced by students enrolled in Environmental Health Science Course 581 - Public Health Emergencies: Disaster Planning and Response. These briefs compile diverse information sources – including status reports, maps, news articles, and web content– into a single, easily digestible document that can be widely shared and used interactively. Key features of this report include:
- Comprehensive Overview: Provides situation updates, maps, relevant news, and web resources.
- Accessibility: Designed for easy reading, wide distribution, and interactive use.
- Collaboration: The “unlocked" format enables other responders to share, copy, and adapt seamlessly.
The students learn by doing, quickly discovering how and where to find critical information and presenting it in an easily understood manner.
GDGLSPGCOER - Git and GitHub Workshop.pptxazeenhodekar
This presentation covers the fundamentals of Git and version control in a practical, beginner-friendly way. Learn key commands, the Git data model, commit workflows, and how to collaborate effectively using Git — all explained with visuals, examples, and relatable humor.
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsDrNidhiAgarwal
Unemployment is a major social problem, by which not only rural population have suffered but also urban population are suffered while they are literate having good qualification.The evil consequences like poverty, frustration, revolution
result in crimes and social disorganization. Therefore, it is
necessary that all efforts be made to have maximum.
employment facilities. The Government of India has already
announced that the question of payment of unemployment
allowance cannot be considered in India
The ever evoilving world of science /7th class science curiosity /samyans aca...Sandeep Swamy
The Ever-Evolving World of
Science
Welcome to Grade 7 Science4not just a textbook with facts, but an invitation to
question, experiment, and explore the beautiful world we live in. From tiny cells
inside a leaf to the movement of celestial bodies, from household materials to
underground water flows, this journey will challenge your thinking and expand
your knowledge.
Notice something special about this book? The page numbers follow the playful
flight of a butterfly and a soaring paper plane! Just as these objects take flight,
learning soars when curiosity leads the way. Simple observations, like paper
planes, have inspired scientific explorations throughout history.
*Metamorphosis* is a biological process where an animal undergoes a dramatic transformation from a juvenile or larval stage to a adult stage, often involving significant changes in form and structure. This process is commonly seen in insects, amphibians, and some other animals.
How to Open a Wizard When Clicking on the Kanban Tile in Odoo 18
1. How to Open a Wizard When
Clicking on the Kanban Tile
in Odoo 18
Enterprise
2. Enterprise
Introduction
In the Odoo backend, Kanban views offer an intuitive, visual way of
managing tasks, projects, and workflows. Kanban views are just like a
card type of rectangular view which we can get the major details of the
model in which it is designed. We can also create our own new kanban
views using codes.
Here, we can discuss about how to open a wizard that appears upon
clicking a Kanban tile. For that, there are some steps like creating a
custom model for storing data, creating the model for the wizard,
designing a kanban model for the custom model, making the wizard to
open on the kanban click.
3. Enterprise
Using the Odoo 18, let’s create a model called ‘student.student using the
code below. And create the necessary views and menus needed.
from odoo import fields, models
class Student(models.Model):
_name = 'student.student'
name = fields.Char("Student Name")
class_name = fields.Char("Class")
roll_no = fields.Char("Roll Number")
image = fields.Binary("Image File")
tag_ids = fields.Many2many('crm.tag', 'student_tag_rel', 'student_id',
'tag_id', string='Tags')
4. Enterprise
Now, under the wizards directory, create a wizard using the Transient
Model as it does not need the data to get stored.
from odoo import fields, models
class ApproveStudent(models.TransientModel):
_name = 'approve.student'
name = fields.Char("Student Name")
class_name = fields.Char("Class")
roll_no = fields.Char("Roll Number")
def approve(self):
student = self.env['student.student'].browse(self.env.context.get('active_id'))
student.write({'state':'student'})
Here, we defined the method approve() which changes the current active student
record to Student state.
Don’t forget to set the access right for the wizard in the security directory.
5. Enterprise
Define the form view for the wizard also and mention that xml file name
in the data key of manifest of the module.
<record id="approve_student_view_form" model="ir.ui.view">
<field name="name">approve.student.view.form</field>
<field name="model">approve.student</field>
<field name="arch" type="xml">
<form string="Select the Type">
<sheet><group>
<group>
<field name="name"/>
<field name="class_name"/>
<field name="roll_no"/>
</group></group>
<footer>
<button name="approve"
type="object"
string="Convert"/>
<button string="Cancel" class="btn-default"
special="cancel" />
</footer>
</sheet>
</form>
</field>
</record>
6. Enterprise
Now, we need to define a simple kanban view for the custom model student.student as
<record id="student_student_view_kanban" model="ir.ui.view">
<field name="name">student.student.kanban</field>
<field name="model">student.student</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile" action="action_open_wiz" type="object">
<templates>
<t t-name="card" class="row g-0">
<div class="col-6">
Name :<field class="fw-bolder" name="name"/><br/>
Class: <field class="fw-bolder" name="class_name"/>
<field name="tag_ids" string="Tags" widget="many2many_tags"/>
</div>
<div class="col-6">
<field name="image" widget="image" class="oe_avatar"/>
</div></t>
</templates>
</kanban>
</field>
</record>
7. Enterprise
In the previous kanban view code we defined it like
<kanban class="o_kanban_mobile" action="action_open_wiz" type="object">
This action attribute of kanban tag decides that there is a click action
to be performed. So, we define the method action_open_wiz in the
student.student model.
8. Enterprise
The code for action_open_wiz is as
def action_open_wiz(self):
for rec in self:
res = {
'type': 'ir.actions.act_window',
'view_mode': 'form',
'res_model': 'approve.student',
'target': 'new',
'context': {
'default_name': rec.name,
'default_class_name': rec.class_name,
'default_roll_no': rec.roll_no
}
}
return res
This simply opens the earlier defined wizard’s form view with all the
fields prefilled with the currently active student record.
9. Enterprise
As a demo, the kanban view’s click on the second kanban tile will show like
The marked button Convert is assigned with the action approve which
does the state change of the selected student
10. Enterprise
So, in short, the action attribute of the kanban tag of a kanban view
for any model is used to trigger a function on clicking it. Here in this
slide, we used to open a custom wizard to open with this method.
In this way, in Odoo 18, we can open a wizard when clicking on the
Kanban Tile so easily.
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