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.

93 lines
2.4 KiB

8 years ago
  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ==============
  5. Base Jsonify
  6. ==============
  7. This module add the jsonify method to the ORM. This method take as argument
  8. the browse record and the "parser" that specify the field to extract.
  9. Example of parser:
  10. .. code-block:: python
  11. parser = [
  12. 'name',
  13. 'number',
  14. 'create_date',
  15. ('partner_id', ['id', 'display_name', 'ref'])
  16. ('line_id', ['id', ('product_id', ['name']), 'price_unit'])
  17. ]
  18. In order to be consitent with the odoo api the jsonify method always
  19. return a list of object even if there is only one element in input
  20. Also the module provide a method "get_json_parser" on the ir.exports object
  21. that generate a parser from an ir.exports configuration
  22. Installation
  23. ============
  24. To install this module, you need to install it
  25. Configuration
  26. =============
  27. No configuration required
  28. Usage
  29. =====
  30. This is a technical module not function feature is added
  31. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  32. :alt: Try me on Runbot
  33. :target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}
  34. .. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
  35. .. branch is "8.0" for example
  36. Known issues / Roadmap
  37. ======================
  38. Nothing yet
  39. Bug Tracker
  40. ===========
  41. Bugs are tracked on `GitHub Issues
  42. <https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please
  43. check there if your issue has already been reported. If you spotted it first,
  44. help us smashing it by providing a detailed and welcomed feedback.
  45. Credits
  46. =======
  47. Images
  48. ------
  49. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  50. Contributors
  51. ------------
  52. * BEAU Sébastien <sebastien.beau@akretion.com>
  53. Maintainer
  54. ----------
  55. .. image:: https://odoo-community.org/logo.png
  56. :alt: Odoo Community Association
  57. :target: https://odoo-community.org
  58. This module is maintained by the OCA.
  59. OCA, or the Odoo Community Association, is a nonprofit organization whose
  60. mission is to support the collaborative development of Odoo features and
  61. promote its widespread use.
  62. To contribute to this module, please visit https://odoo-community.org.