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.

80 lines
2.1 KiB

8 years ago
  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :alt: License: AGPL-3
  3. SQL Export
  4. ==========
  5. Allow to export data in csv files FROM sql requests.
  6. There are some restrictions in the sql query, you can only read datas.
  7. No update, deletion or creation are possible.
  8. A new menu named Export is created.
  9. Known issues / Roadmap
  10. ======================
  11. * Some words are prohibited and can't be used is the query in anyways, even in
  12. a select query:
  13. - delete
  14. - drop
  15. - insert
  16. - alter
  17. - truncate
  18. - execute
  19. - create
  20. - update
  21. See sql_request_abstract module to fix this issue.
  22. * checking SQL request by execution and rollback is disabled in this module
  23. since variables features has been introduced. This can be fixed by
  24. overloading _prepare_request_check_execution() function.
  25. Usage
  26. =====
  27. Dashboards > Sql Export.
  28. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  29. :alt: Try me on Runbot
  30. :target: https://runbot.odoo-community.org/runbot/149/10.0
  31. Specific use with parameters
  32. ----------------------------
  33. - `%(company_id)s` allows to set in the query the company id of the user
  34. - `%(user_id)s` allows to set in the query the user id
  35. - for any created field with `Sql Export Variables` menu, you can use it with `%(x_field_example)s` syntax
  36. (Limitation for relational fields)
  37. Bug Tracker
  38. ===========
  39. Bugs are tracked on `GitHub Issues
  40. <https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
  41. check there if your issue has already been reported. If you spotted it first,
  42. help us smash it by providing detailed and welcomed feedback.
  43. Credits
  44. =======
  45. Contributors
  46. ------------
  47. * Florian da Costa <florian.dacosta@akretion.com>
  48. Maintainer
  49. ----------
  50. .. image:: http://odoo-community.org/logo.png
  51. :alt: Odoo Community Association
  52. :target: http://odoo-community.org
  53. This module is maintained by the OCA.
  54. OCA, or the Odoo Community Association, is a nonprofit organization whose
  55. mission is to support the collaborative development of Odoo features and
  56. promote its widespread use.
  57. To contribute to this module, please visit http://odoo-community.org.