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.

126 lines
3.9 KiB

  1. ================
  2. PoS Order Margin
  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%2Fpos-lightgray.png?logo=github
  15. :target: https://github.com/OCA/pos/tree/12.0/pos_margin
  16. :alt: OCA/pos
  17. .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
  18. :target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_margin
  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/184/12.0
  22. :alt: Try me on Runbot
  23. |badge1| |badge2| |badge3| |badge4| |badge5|
  24. This module extends the functionality of point of sale to support margin on
  25. pos orders.
  26. This gives the profitability by calculating the difference between the Unit
  27. Price and Cost Price.
  28. **Table of contents**
  29. .. contents::
  30. :local:
  31. Usage
  32. =====
  33. To use this module, you need to:
  34. * Go to 'Point Of Sale' / 'Orders' / 'Orders'
  35. .. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_margin/static/description/pos_order_tree.png
  36. :width: 800px
  37. * Open an order
  38. .. figure:: https://raw.githubusercontent.com/OCA/pos/12.0/pos_margin/static/description/pos_order_form.png
  39. :width: 800px
  40. Known issues / Roadmap
  41. ======================
  42. This module depends on ``sale_margin`` module to reuse algorithm present in the
  43. function ``_get_purchase_price`` of the model ``sale.order.line`` to
  44. compute correctly purchase price, in a multicurrency context.
  45. This dependency can be removed, when Odoo Core will be correctly refactored,
  46. moving this ``@api.model`` function in a more generic module (``account``
  47. for exemple).
  48. Changelog
  49. =========
  50. 12.0.1.0.0
  51. ~~~~~~~~~~
  52. * Migrate to V12.0
  53. * Reuse ``sale_margin`` computation to handle multi currency context.
  54. * Correct computation of margin, if a module that adds ``uom_id`` on
  55. ``pos.order.line`` is installed.
  56. * Add test
  57. Bug Tracker
  58. ===========
  59. Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
  60. In case of trouble, please check there if your issue has already been reported.
  61. If you spotted it first, help us smashing it by providing a detailed and welcomed
  62. `feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_margin%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  63. Do not contact contributors directly about support or help with technical issues.
  64. Credits
  65. =======
  66. Authors
  67. ~~~~~~~
  68. * GRAP
  69. Contributors
  70. ~~~~~~~~~~~~
  71. * Sylvain LE GAL (https://twitter.com/legalsylvain)
  72. * Wolfgang Pichler
  73. Maintainers
  74. ~~~~~~~~~~~
  75. This module is maintained by the OCA.
  76. .. image:: https://odoo-community.org/logo.png
  77. :alt: Odoo Community Association
  78. :target: https://odoo-community.org
  79. OCA, or the Odoo Community Association, is a nonprofit organization whose
  80. mission is to support the collaborative development of Odoo features and
  81. promote its widespread use.
  82. .. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
  83. :target: https://github.com/legalsylvain
  84. :alt: legalsylvain
  85. Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
  86. |maintainer-legalsylvain|
  87. This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/12.0/pos_margin>`_ project on GitHub.
  88. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.