From 2b1db019dbf0c29bde222b477ebd1c84780403b8 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Tue, 10 Feb 2015 08:32:58 +0000 Subject: [PATCH] Add better explanation --- shell/README.md | 22 ++++++++++++++++++++++ shell/__openerp__.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 shell/README.md diff --git a/shell/README.md b/shell/README.md new file mode 100644 index 000000000..bc908d8ba --- /dev/null +++ b/shell/README.md @@ -0,0 +1,22 @@ +Makes available in Odoo 8 the `shell` server command available for Odoo 9. + +To have this feature available this module just need to be in the +addons path. To use it, in a terminal window run: + + $ ./odoo.py shell -d + +This will initialize a server instance and then jump into a Pyhton +interactive shell, with full access to the Odoo API. + +Example session: + + >>> self + res.users(1,) + >>> self.name + u'Administrator' + >>> self._name + 'res.users' + >>> self.env + + >>> self.env['res.partner'].search([('name', 'like', 'Ag')]) + res.partner(7, 51) diff --git a/shell/__openerp__.py b/shell/__openerp__.py index 5a9597430..bc8b78852 100644 --- a/shell/__openerp__.py +++ b/shell/__openerp__.py @@ -1,6 +1,6 @@ { 'name': 'Shell command backport', - 'description': 'Backport of the v9 shell CLI command.', + 'summary': 'Backport of the v9 shell CLI command.', 'author': 'Daniel Reis', 'version': '1.0', }