odeX - Odoo ORM Box 作者: Odoo Mates
Run Odoo ORM calls (search_read, read, write, create, fields_get…) in Python syntax from any Odoo page and inspect the result.
1 个用户1 个用户
扩展元数据
屏幕截图
关于此扩展
odeX is an Odoo ORM box for developers and functional consultants. Press Alt+Shift+X (or click the toolbar button) on any Odoo page, type an ORM call the way you would in an Odoo shell, press Enter and see the result right away. The box opens with your own user ready to run, so the first Enter shows who you are on this database.
WRITE CALLS LIKE IN PYTHON
• model.method(...), env['model'], browse(ids), with_context(...), with_company(...)
• Keyword arguments, True/False/None, tuples, Command.create / Command.set / …
• uid, and _ / __ for the previous results: res.partner.browse(_).read(['name'])
• Tab completes model names and ORM methods, with their signatures
SEE THE RESULT
• Table view for record lists, a collapsible tree for anything else, plus JSON and Python views
• Many2one values shown as "name #id"
• Copy the result as Python or JSON
• Errors show Odoo's error type and message, with the server traceback folded underneath; syntax errors point at the column
SAFE BY DEFAULT
• Every call runs through your own Odoo session, as your user, with your access
• write, create, unlink, button methods and anything not known to be read-only ask for confirmation first, showing the database and the number of records
• odeX has no access to any site until you open it on that tab
COMFORT
• Draggable, resizable panel that doesn't touch Odoo's styles
• History of your last 200 calls with status and timing; Alt+↑ / Alt+↓ to recal
• Examples menu, light / dark / auto theme, your draft survives a reload
PRIVACY
odeX runs only when you open it, only on that tab, and talks only to the Odoo s never stored or sent anywhere. No data is collected, no analytics, nothird-party services.
odeX is an independent open-source project (MIT), not affiliated with Odoo S.A. "Odoo" is a trademark of Odoo S.A.
Source: https://github.com/odoomates/odex
res.partner.search_read([('is_company', '=', True)], ['name', 'email'], limit=5)
res.partner.browse([1, 2]).with_context(lang='fr_FR').read(['name'])
env['sale.order'].search_count([('state', '=', 'sale')])
WRITE CALLS LIKE IN PYTHON
• model.method(...), env['model'], browse(ids), with_context(...), with_company(...)
• Keyword arguments, True/False/None, tuples, Command.create / Command.set / …
• uid, and _ / __ for the previous results: res.partner.browse(_).read(['name'])
• Tab completes model names and ORM methods, with their signatures
SEE THE RESULT
• Table view for record lists, a collapsible tree for anything else, plus JSON and Python views
• Many2one values shown as "name #id"
• Copy the result as Python or JSON
• Errors show Odoo's error type and message, with the server traceback folded underneath; syntax errors point at the column
SAFE BY DEFAULT
• Every call runs through your own Odoo session, as your user, with your access
• write, create, unlink, button methods and anything not known to be read-only ask for confirmation first, showing the database and the number of records
• odeX has no access to any site until you open it on that tab
COMFORT
• Draggable, resizable panel that doesn't touch Odoo's styles
• History of your last 200 calls with status and timing; Alt+↑ / Alt+↓ to recal
• Examples menu, light / dark / auto theme, your draft survives a reload
PRIVACY
odeX runs only when you open it, only on that tab, and talks only to the Odoo s never stored or sent anywhere. No data is collected, no analytics, nothird-party services.
odeX is an independent open-source project (MIT), not affiliated with Odoo S.A. "Odoo" is a trademark of Odoo S.A.
Source: https://github.com/odoomates/odex
评分 0(1 位用户)
权限与数据
更多信息