Created
July 6, 2021 14:07
-
-
Save Hidenmy/d0787445e0f515b35647c50a2754df09 to your computer and use it in GitHub Desktop.
odooly vs odoorpc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from odooly import Client | |
def main(): | |
odoo = Client(server='http://localhost:8014/jsonrpc', db='odoo14', user='[email protected]', password='odoo14') | |
users_list = odoo.env['res.users'].search([]) | |
print(users_list) | |
if __name__ == "__main__": | |
main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import odoorpc | |
def main(): | |
odoo = odoorpc.ODOO('localhost', port=8014) | |
odoo.login('odoo14', '[email protected]', 'odoo14') | |
users_list = odoo.env['res.users'].search([]) | |
print(users_list) # the name of its company | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment