In this video, we are discussing how to set a default value for a field using a function in odoo 15. #odoo15developmentvideos Video Content 00:10 Introduction 00:40 Set Default Value for a Field Using Function while defining a field we can set a default value for that field. If we want to get the default […]
Sometimes there is a particular feature that we want to be able to add to several different models. #odoodevelopmentvideos Video Contents 00:00 Introduction 02:16 Using of Mixing Class 03:44 Result At that time we just used to rewrite the code to all models that are not an effective way. #odoo15videos Odoo provides the Abstract model […]
In this video, we are discussing how to add a new option in an existing selection field in odoo. #odoodevelopmentvideos Video Contents 00:10 Introduction 00:45 Adding a New Item in Selection Field #odoo15videos First, we inherit the model in which the selection field is defined. Then we redefine the field by just adding the selection_add […]
In this video, we can look at how to trigger a function with a button click. #odoo15tutorials Using a button we can call an XML action or a python function. If you want to call a python function on a button click, the type has to be given as an object. Video Contents 00:10 Introduction […]
In this video, we are discussing how to remove the create and edit option from view in odoo15. #odoodevelopmentvideos Video Contents 00:10 Introduction 00:40 Removing the Create and Edit Button in UI There will be certain systems when we will have to create some models to store data created from the website. #odootutorials Also if […]
In this video, We can discuss how we can show sample data in tree, kanban view. If the model does not contain any data at that time sample data will show. #odoodevelopmentvideos Video Contents 00:00 Introduction 01:18 Adding Sample =1 Attribute in a Tree, Kanban View Only we need to just add sample = 1 […]
In this video, we can discuss how we can provide kanban record color in notebook Odoo. #odoo15developmentvideos Video Contents ———————— 00:00 Introduction 00:28 Checking an Example 00:40 Adding Color to Kanban There are lots of views available on Odoo. List, form, graph, pivot are some examples. Kanban is an interesting view. #odoo15tutorials In kanban, view […]
An abstract is a generic model that implements some feature that can then be inherited by a regular model. Video Contents ———————— 00:00 Introduction 00:50 Creating an Abstract Model 01:17 Checking the Model in Odoo and Pg Admin 03:08 How to Use Abstract Model Methods and Fields in the Regular Models Sometimes, there is a […]
The search_count() method returns the number of records matching the search domain. This method accepts a search domain as its arguments. #odootechnicaltutorial Video Contents ————————- 00:15 Introduction 00:16 search_count function use case 00:36 using search_count function to show the number of records Syntax: Model.search_count(args) ? int Eg: self.search_count([(‘product_tmpl_id’, ‘=’, record.product_tmpl_id.id),(‘active’, ‘=’, True), ]) This returns […]
By using the many2many fields many records of one model can be linked to many records of another model. #odoodevelopmentvideos Sometimes we may need to unlink all the records from a many2many fields at once. #odoomany2many There are some flags that can be used to update the many2many field. one of them is, (5)- which […]