From version 14, Odoo has introduced a new interactive way to display their models. They provide the opportunity to display dummy data if no records exist within the model while accessing their tree, kanban, graph, or pivot view. These data appear as blurred views in their respective view forms and this gives the user a […]
Automated actions can be used to automatically trigger actions based on some conditions. We can use them to automatically perform some operations on records that meet certain criteria or based on time conditions. Automated Actions are a powerful way to add functionality to Odoo without any programming. Also, if you are using Odoo Online you […]
Promotional programs can be used as a marketing tool where you can target the specific audience and can implement the loyalty program. This video explains how these promotional programs are created and learn how to encourage potential customers to use promo codes on your eCommerce and increase your sales. #odoo #odoo14 #odoowebsite #Create #Share #Promotional […]
While we previously used fields_get() to query a model and have been using an arbitrary model from the start, Odoo stores most model metadata inside a few meta-models which allow both querying the system and altering models and fields (with some limitations) on the flyover XML-RPC. #odooexternalapi #xmlrpc #odooxmlrpc #Introspection #Inspection #Odoo #External #API #Odoo […]
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’, […]
To install a module in Odoo, we usually go to the app menu and install it from there. There is also the possibility for installing or uninstalling a module directly from the settings using a boolean field. In this video, we’ll be discussing how we can execute that. #odoo #odoo14 #install #module #settings #Odoo #install […]
We perform tasks in Odoo with the help of modules. With the help of modules, we can customize or alter the existing behavior of Odoo or add new features to it. In this video, we will be seeing how we can create a module with its basic structure from scratch without using the scaffold command. […]
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)) […]
Records can be updated using write(), it takes a list of records to update and mapping of updated fields to values similar to create(). #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, {}) […]