Professional Documents
Culture Documents
Instalador Odoo
Instalador Odoo
#action=35&model=ir.module.module&view_type=kanban&cid
s=1&menu_id=5
Aquí encuentro como accesar la Base de Datos desde la línea de Comando en Python
https://pythonhosted.org/OdooRPC/
import odoorpc
# Prepare the connection to the server odoo =
odoorpc.ODOO('localhost', port=8069)
. .
# Check available databases print(odoo db list())
.
# Login odoo login('db_name', 'user', 'passwd’)
# Current user
user = odoo.env.user
.
print(user name) # name of the user connected
.
print(order name) products = [line.product_id.name for line in order.order_line]
print(products)
# Update data through a record