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.

63 lines
1.3 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. Credits
  29. =======
  30. Contributors
  31. ------------
  32. * OpenERP S.A.
  33. * Daniel Reis <dgreis@sapo.pt>
  34. Maintainer
  35. ----------
  36. .. image:: http://odoo-community.org/logo.png
  37. :alt: Odoo Community Association
  38. :target: http://odoo-community.org
  39. This module is maintained by the OCA.
  40. OCA, or the Odoo Community Association, is a nonprofit organization whose
  41. mission is to support the collaborative development of Odoo features and
  42. promote its widespread use.
  43. To contribute to this module, please visit http://odoo-community.org.