OCA reporting engine fork for dev and update.
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.

116 lines
4.0 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. Qweb PDF reports signer
  6. =======================
  7. This module extends the functionality of report module to sign
  8. PDFs using a PKCS#12 certificate.
  9. Installation
  10. ============
  11. To install this module, you need to install Java JDK::
  12. apt-get install openjdk-7-jre-headless
  13. Configuration
  14. =============
  15. In order to start signing PDF documents you need to configure certificate(s)
  16. to use in your company.
  17. * Go to ``Settings > Companies > Companies > Your company``
  18. * Go to ``Report configuration`` tab
  19. * Click ``Edit``
  20. * Add a new item in ``PDF report certificates`` list
  21. * Click ``Create``
  22. * Set name, certificate file, password file and model
  23. * Optionally you can set a domain and filename pattern for saving as attachment
  24. For example, if you want to sign only customer invoices in open or paid state:
  25. * Model: ``account.invoice``
  26. * Domain: ``[('type','=','out_invoice'), ('state', 'in', ('open', 'paid'))]``
  27. * Save as attachment: ``(object.number or '').replace('/','_') + '.signed.pdf'``
  28. **Note**: Linux user that executes Odoo server process must have
  29. read access to certificate file and password file
  30. Usage
  31. =====
  32. User just prints PDF documents (only Qweb PDF reports supported) as usual,
  33. but signed PDF is automatically downloaded if this document model is configured
  34. as indicated above.
  35. If 'Save as attachment' is configured, signed PDF is saved as attachment and
  36. next time saved one is downloaded without signing again. This is appropiate when
  37. signing date is important, for example, when signing customer invoices.
  38. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  39. :alt: Try me on Runbot
  40. :target: https://runbot.odoo-community.org/runbot/143/8.0
  41. For further information, please visit:
  42. * https://www.odoo.com/forum/help-1
  43. Known issues / Roadmap
  44. ======================
  45. * When signing multiple documents (if 'Allow only one document' is disable)
  46. then 'Save as attachment' is not applied and signed result is not
  47. saved as attachment.
  48. Bug Tracker
  49. ===========
  50. Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
  51. In case of trouble, please check there if your issue has already been reported.
  52. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  53. `here <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_signer%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  54. Credits
  55. =======
  56. External utilities
  57. ------------------
  58. * iText v1.4.8: © 2000-2006, Paulo Soares, Bruno Lowagie and others - License `MPL <http://www.mozilla.org/MPL>`_ or `LGPL2 <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>`_ - http://sourceforge.net/projects/itext
  59. * jPdfSign: © 2006 Jan Peter Stotz - License `MPL <http://www.mozilla.org/MPL>`_ or `LGPL2 <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>`_ (inherited from iText) - http://private.sit.fraunhofer.de/~stotz/software/jpdfsign
  60. * Modified jPdfSign: © 2015 Antonio Espinosa - License `MPL <http://www.mozilla.org/MPL>`_ or `LGPL2 <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>`_ (inherited from iText) - static/src/java/JPdfSign.java
  61. Icon
  62. ----
  63. `Created by Anton Noskov from the Noun Project <https://thenounproject.com/search/?q=signed+contract&i=65694>`_
  64. Contributors
  65. ------------
  66. * Rafael Blasco <rafabn@antiun.com>
  67. * Antonio Espinosa <antonioea@antiun.com>
  68. Maintainer
  69. ----------
  70. .. image:: https://odoo-community.org/logo.png
  71. :alt: Odoo Community Association
  72. :target: https://odoo-community.org
  73. This module is maintained by the OCA.
  74. OCA, or the Odoo Community Association, is a nonprofit organization whose
  75. mission is to support the collaborative development of Odoo features and
  76. promote its widespread use.
  77. To contribute to this module, please visit http://odoo-community.org.