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.

123 lines
5.4 KiB

  1. ======================
  2. Attachment Synchronize
  3. ======================
  4. .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. !! This file is generated by oca-gen-addon-readme !!
  6. !! changes will be overwritten. !!
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
  9. :target: https://odoo-community.org/page/development-status
  10. :alt: Beta
  11. .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
  12. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  13. :alt: License: AGPL-3
  14. .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
  15. :target: https://github.com/OCA/server-tools/tree/12.0/attachment_synchronize
  16. :alt: OCA/server-tools
  17. .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
  18. :target: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-attachment_synchronize
  19. :alt: Translate me on Weblate
  20. .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
  21. :target: https://runbot.odoo-community.org/runbot/149/12.0
  22. :alt: Try me on Runbot
  23. |badge1| |badge2| |badge3| |badge4| |badge5|
  24. This module allows to **import/export files** from/to backend servers.
  25. A backend server is defined by the basic `storage_backend <https://github.com/OCA/storage/tree/12.0/storage_backend>`_ OCA module, while it can be configured (amazon S3, sftp,...) with additional modules from the `storage <https://github.com/oca/storage>`_ repository.
  26. The imported files (and the files to be exported) are stored in Odoo as ``attachment.queue`` objects, defined by the `attachment_queue <https://github.com/OCA/server-tools/tree/12.0/attachment_queue>`_ module while the importation itself (resp. exportation) is realized by **"Attachments Import Tasks"** (resp. "Attachments Export Tasks") defined by this current module.
  27. **Table of contents**
  28. .. contents::
  29. :local:
  30. Usage
  31. =====
  32. As importation and exportation are different processes, they are triggered in different ways :
  33. **To import files**, you need to create an *"Attachment Import Task"* (menu *Settings > Technical > Attachments Import Tasks*) which defines :
  34. - where to find the files to import from the backend server (path to the files, selection pattern)
  35. - what to do with the source files in the backend server (avoid duplicates, delete/rename after import...)
  36. - how the files will be processed once imported (through the **File Type** field).
  37. .. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/attachment_synchronize/static/description/import_task.png
  38. .. epigraph::
  39. 🔎 The **File Type** options are defined by other modules built to process the Attachments Queues with the same "File Type".
  40. **To export files**, you need first to register them as *"Attachments Queues"* objects linked to an *"Attachment Export Task"* (which set automatically their **File Type** to *"Export File (External Location)"*).
  41. Then, you can export one file at a time from the *Attachment Queue*'s form view, or export all the *Attachments Queues* in a pending state related to the same *Export Task* from the given *Export Task* form view (menu *Settings > Technical > Attachments Export Tasks*) :
  42. .. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/attachment_synchronize/static/description/export_task.png
  43. Bug Tracker
  44. ===========
  45. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
  46. In case of trouble, please check there if your issue has already been reported.
  47. If you spotted it first, help us smashing it by providing a detailed and welcomed
  48. `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_synchronize%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  49. Do not contact contributors directly about support or help with technical issues.
  50. Credits
  51. =======
  52. Authors
  53. ~~~~~~~
  54. * Akretion
  55. Contributors
  56. ~~~~~~~~~~~~
  57. `Akretion <https://www.akretion.com/>`_ :
  58. - Valentin CHEMIERE
  59. - Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
  60. - Florian DA COSTA <florian.dacosta@akretion.com>
  61. - Clément MOMBEREAU <clement.mombereau@akretion.com.br>
  62. GS Lab:
  63. - Giovanni SERRA <giovanni@gslab.it>
  64. Maintainers
  65. ~~~~~~~~~~~
  66. This module is maintained by the OCA.
  67. .. image:: https://odoo-community.org/logo.png
  68. :alt: Odoo Community Association
  69. :target: https://odoo-community.org
  70. OCA, or the Odoo Community Association, is a nonprofit organization whose
  71. mission is to support the collaborative development of Odoo features and
  72. promote its widespread use.
  73. .. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px
  74. :target: https://github.com/florian-dacosta
  75. :alt: florian-dacosta
  76. .. |maintainer-GSLabIt| image:: https://github.com/GSLabIt.png?size=40px
  77. :target: https://github.com/GSLabIt
  78. :alt: GSLabIt
  79. .. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px
  80. :target: https://github.com/bealdav
  81. :alt: bealdav
  82. Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
  83. |maintainer-florian-dacosta| |maintainer-GSLabIt| |maintainer-bealdav|
  84. This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/12.0/attachment_synchronize>`_ project on GitHub.
  85. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.