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.

89 lines
2.3 KiB

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