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

Subscribers:
29,300
Published on ● Video Link: https://www.youtube.com/watch?v=2b9-rqhiW1U



Category:
Guide
Duration: 2:31
574 views
2


Records can be deleted in bulk by providing their ids to unlink().
#odooexternalapi #xmlrpc #odooxmlrpc

url = "http://localhost:8041"
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', 'unlink', [[64]])
print("delete_rec",delete_rec)




Other Videos By Cybrosys Technologies


2021-08-02How to Set Alert Messages on Form Views | Odoo XML
2021-08-02Odoo Website Support | Odoo Development
2021-08-02How to easily Add a Button in List View Header Odoo V14 | How to Add Button in Odoo 14
2021-07-31How to Show Sample Data in Odoo Tree or Kanban View ?
2021-07-31Add Existing fields to Views using Odoo 14 Studio
2021-07-30Export and Import Modules Using Studio | Odoo 14 Studio
2021-07-29Automated Actions Using Odoo 14 Studio
2021-07-29How to Create & Share Promotional Codes in E-commerce Odoo 14?
2021-07-28Introspection & Inspection | Odoo External API | Odoo XMLRPC
2021-07-28Preview Accounting Entries and Create Automatic Entries for Selected Journal Items in Odoo 14
2021-07-27How to use unlink method() | Odoo External API | Odoo XMLRPC
2021-07-26How to install a module from settings in Odoo | How to install a Module in Odoo
2021-07-26A Demonstration Module in Odoo | Odoo 14 Functional Tutorial
2021-07-26How to make a field Mandatory in Odoo | Odoo Technical | Odoo Tutorial
2021-07-26How to use search_count method in Odoo | XML RPC | Odoo External API
2021-07-24Listing record fields | Odoo External API | Odoo XMLRPC
2021-07-23Manage Online Appointments in Odoo 14 | Odoo Functional Videos
2021-07-22Approvals Customization Using Odoo 14 Studio
2021-07-22How to use Odoo search_read () | Odoo XML RPC | External API
2021-07-22How to read records using Odoo XML RPC | Read records External API
2021-07-21How to manage URL in Odoo 14 | Odoo 14 Website



Tags:
odoo
odoo erp
how to override unlink method in odoo
how to use name search method in odoo
how to use name_search method in odoo
how to use search_count method in odoo
how to use _name_search method in odoo
how to delete external id in odoo
how to use delete tag in odoo
how to use orm in terminal
unlink method in odoo
unlink method
unlink odoo in method
how to delete record in odoo
how to override delete method in odoo
external application connect odoo