Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2497 Представления

The official docs link the Oersted library as a pythonic way to access Odoo ORM in 10.0:
https://www.odoo.com/documentation/10.0/howtos/backend.html
However oersted suffers from the following bug and is unable to authenticate to 10.0:
https://github.com/kryskool/oersted/issues/2

Please either remove this from the docs or fix the bug. Has anyone else found any pythonic way to connnect to an external Odoo instance's ORM?



By "pythonically" I mean NOT through RPC (string connections) but through pythonic objects (instead of

invoke('create', 'note.note', '{color: 8}')

it would be

note.color = 8


Аватар
Отменить
Автор Лучший ответ

Oersted is deprecated but the 10.0 docs haven't been updated. The new module is: http://pythonhosted.org/OdooRPC/

Аватар
Отменить
Лучший ответ

Thanks for the feedback: https://github.com/odoo/odoo/commit/5b424e5f97b8a53b3c4d39a1f11107bf3b5f6ac4

Аватар
Отменить