You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

  1. CLI shell for Odoo
  2. ==================
  3. Makes available in Odoo 8 the `shell` server command available for Odoo 9.
  4. Installation
  5. ============
  6. Just install the module.
  7. Configuration
  8. =============
  9. Nothing special to be configured.
  10. Usage
  11. =====
  12. To have this feature available this module just need to be in the
  13. addons path. To use it, in a terminal window run:
  14. $ ./odoo.py shell -d <dbname>
  15. This will initialize a server instance and then jump into a Pyhton
  16. interactive shell, with full access to the Odoo API.
  17. Example session:
  18. >>> self
  19. res.users(1,)
  20. >>> self.name
  21. u'Administrator'
  22. >>> self._name
  23. 'res.users'
  24. >>> self.env
  25. <openerp.api.Environment object at 0xb3f4f52c>
  26. >>> self.env['res.partner'].search([('name', 'like', 'Ag')])
  27. res.partner(7, 51)
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
  31. In case of trouble, please check there if your issue has already been reported.
  32. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  33. `here <https://github.com/OCA/server-tools/issues/new?body=module:%20shell%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  34. Credits
  35. =======
  36. Contributors
  37. ------------
  38. * OpenERP S.A.
  39. * Daniel Reis <dgreis@sapo.pt>
  40. Maintainer
  41. ----------
  42. .. image:: http://odoo-community.org/logo.png
  43. :alt: Odoo Community Association
  44. :target: http://odoo-community.org
  45. This module is maintained by the OCA.
  46. OCA, or the Odoo Community Association, is a nonprofit organization whose
  47. mission is to support the collaborative development of Odoo features and
  48. promote its widespread use.
  49. To contribute to this module, please visit http://odoo-community.org.