April 2019
Beginner to intermediate
774 pages
24h 59m
English
Perform the following steps to create, write, and update a book's information through RPC:
import odoorpcdb_name = 'test-12'user_name = 'admin'password = 'admin'# Prepare the connection to the serverodoo = odoorpc.ODOO('localhost', port=8069)odoo.login(db_name, user_name, password) # login# User informationuser = odoo.env.userprint(user.name) # name of the user connectedprint(user.company_id.name) # the name of user's companyprint(user.email) # the email of usserBookModel = odoo.env['library.book']search_domain = ['|', ['name', 'ilike', 'odoo'], ['name', 'ilike', ...Read now
Unlock full access