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.

30 lines
1.3 KiB

  1. In order to start signing PDF documents you need to configure certificate(s)
  2. to use in your company.
  3. * Go to ``Settings > Companies > Companies > Your company``
  4. * Go to ``Report configuration`` tab
  5. * Click ``Edit``
  6. * Add a new item in ``PDF report certificates`` list
  7. * Click ``Create``
  8. * Set name, certificate file, password file and model
  9. * Optionally you can set a domain and filename pattern for saving as attachment
  10. For example, if you want to sign only customer invoices in open or paid state:
  11. * Model: ``account.invoice``
  12. * Domain: ``[('type','=','out_invoice'), ('state', 'in', ('open', 'paid'))]``
  13. * Save as attachment: ``(object.number or '').replace('/','_') + '.signed.pdf'``
  14. **Note**: Linux user that executes Odoo server process must have
  15. read access to certificate file and password file
  16. Java Memory Settings
  17. ~~~~~~~~~~~~~~~~~~~~
  18. If you are signing large amounts of reports at the same time, or if you have a
  19. lower worker memory size than the JVM defaults, you may need to tune the JVM
  20. heap memory limits. Do so by adding a ``$JVM_ARGS`` environment variable that
  21. contains the required flags. Check out these links too:
  22. - `StackOverflow answer <https://stackoverflow.com/a/14763095/1468388>`_.
  23. - `Java docs <https://docs.oracle.com/cd/E15523_01/web.1111/e13814/jvm_tuning.htm#PERFM161>`_.