How to Count Records Using search_count in Odoo 16 | search_count() method in Odoo 16 – CBMS Odoo ERP

The search_count() method returns the number of records matching the search domain. This method accepts a search domain as its argument.Syntax: Model.search_count(args)? int #odoo16 #odootutorials Eg: self.search_count([(‘product_tmpl_id’, ‘=’, record.product_tmpl_id.id),(‘active’, ‘=’, True), ])This returns the set of records satisfying the domain conditions given as the arguments inside the model. #odoodevelopment #odoo #odoobeginers Connect With Us: ————————————— […]

What is Costing Method in Odoo 16 Inventory | Different Types of Costing Methods in Odoo 16 – CBMS Odoo ERP

Product costing operations are one of the most difficult duties for a business. Using product costing methodologies, it is simple to assign a definite price to a manufactured product. Video Chapters 00:00 – Introduction 01:21 – How to set the costing method as the standard price. 05:16 – How to set the costing method as […]

Code Profiling – Graph a Method | How to Analyze Performance of a Code in Odoo 15 | Odoo 15 Tips – CBMS Odoo ERP

The need for profilers is very important for a programmer for the analysis of his program at different aspects. Code profiling helps us to analyze the time taken to execute a program, frequency of a function call, memory usage, complexity of a program, etc. Video Contents 00:00 Introduction 00:47 Graph a method: Produce a graph […]

How to Update Client Interface ‘on change’ @api.onchange Odoo 15 | Odoo 15 onchange Method – CBMS Odoo ERP

In this video, it describes about @api.onchange method on the client interface #onchangemethod @api.onchange decorator is used when the field’s value is changed. It can be used to validate data or trigger action. This method can be invoked on pseudo records that contain values of the form. #odoo15developmenttutorials Video Contents: #odoo15videos 0:00 Introduction 1:13 @api.onchange […]

How to use unlink method() | Odoo External API | Odoo XMLRPC – CBMS Odoo ERP

Records can be deleted in bulk by providing their ids to unlink(). #odooexternalapi #xmlrpc #odooxmlrpc url = ” db = ‘test_local_enterprise_db’ username = ’14’ password = ’14’ import xmlrpc.client common = xmlrpc.client.ServerProxy(‘{}/xmlrpc/2/common’.format(url)) version = common.version() print(“version”, version) uid = common.authenticate(db, username, password, {}) print(“uid = “,uid) models = xmlrpc.client.ServerProxy(‘{}/xmlrpc/2/object’.format(url)) delete_rec = models.execute_kw(db, uid, password, ‘res.partner’, […]

How to use search_count method in Odoo | XML RPC | Odoo External API – CBMS Odoo ERP

Rather than retrieve a possibly gigantic list of records and count them, search_count() can be used to retrieve only the number of records matching the query. It takes the same domain filter as search() and no other parameter. url = ” db = ‘test_local_enterprise_db’ username = ’14’ password = ’14’ import xmlrpc.client common = xmlrpc.client.ServerProxy(‘{}/xmlrpc/2/common’.format(url)) […]