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.

72 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. Variable quantity in contract recurrent invoicing
  6. =================================================
  7. With this module, you will be able to define in recurring contracts some
  8. lines with variable quantity according a provided formula.
  9. Configuration
  10. =============
  11. #. Go to Sales > Configuration > Contracts > Formulas (quantity).
  12. #. Define any formula based on Python code that stores at some moment a
  13. float/integer value of the quantity to invoice in the variable 'result'.
  14. You can use these variables to compute your formula:
  15. * *env*: Environment variable for getting other models.
  16. * *context*: Current context dictionary.
  17. * *user*: Current user.
  18. * *line*: Contract recurring invoice line that triggers this formula.
  19. * *contract*: Contract whose line belongs to.
  20. * *invoice*: Invoice (header) being created.
  21. Usage
  22. =====
  23. To use this module, you need to:
  24. #. Go to Sales -> Contracts and select or create a new contract.
  25. #. Check *Generate recurring invoices automatically*.
  26. #. Add a new recurring invoicing line.
  27. #. Select "Variable quantity" in column "Qty. type".
  28. #. Select one of the possible formulas to use (previously created).
  29. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  30. :alt: Try me on Runbot
  31. :target: https://runbot.odoo-community.org/runbot/110/9.0
  32. Bug Tracker
  33. ===========
  34. Bugs are tracked on `GitHub Issues
  35. <https://github.com/OCA/contract/issues>`_. In case of trouble, please
  36. check there if your issue has already been reported. If you spotted it first,
  37. help us smashing it by providing a detailed and welcomed feedback.
  38. Credits
  39. =======
  40. Contributors
  41. ------------
  42. * Pedro M. Baeza <pedro.baeza@tecnativa.com>
  43. Maintainer
  44. ----------
  45. .. image:: https://odoo-community.org/logo.png
  46. :alt: Odoo Community Association
  47. :target: https://odoo-community.org
  48. This module is maintained by the OCA.
  49. OCA, or the Odoo Community Association, is a nonprofit organization whose
  50. mission is to support the collaborative development of Odoo features and
  51. promote its widespread use.
  52. To contribute to this module, please visit https://odoo-community.org.