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.

75 lines
2.9 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Point Of Sale - Keep Draft Orders module for Odoo
  5. # Copyright (C) 2013-Today GRAP (http://www.grap.coop)
  6. # @author Julien WESTE
  7. # @author Sylvain LE GAL (https://twitter.com/legalsylvain)
  8. #
  9. # This program is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU Affero General Public License as
  11. # published by the Free Software Foundation, either version 3 of the
  12. # License, or (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU Affero General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Affero General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. ##############################################################################
  23. {
  24. 'name': 'Point Of Sale - Keep Draft Orders ',
  25. 'version': '2.1',
  26. 'category': 'Point of Sale',
  27. 'description': """
  28. Allow to close a Session even if there are some PoS Orders in draft state
  29. =========================================================================
  30. By default, in Odoo, All PoS Orders must be in 'paid' or 'invoiced' state to
  31. allow user to close the session;
  32. This module can be usefull to manage Orders in slate for some customers;
  33. Features:
  34. ---------
  35. With this Module:
  36. * if a PoS order is in a 'draft' mode (without any payment), the PoS order
  37. will be unassociated to the current session, when closing the session;
  38. * When opening a new session, the PoS Orders in 'draft' state will be
  39. associated to the new session, based on the user_id;
  40. * Add a new computed field 'is_partial_paid' on PoS Order:
  41. * This field is True, if the PoS order is in a draft mode with
  42. some payments;
  43. * In the tree view, the partial_paid orders are displayed in red
  44. colors;
  45. * Forbid to close a session if there is a partial paid Order, to avoid
  46. to have Account Move Lines that can not be reconciled;
  47. * A new field 'allow_slate' is available in PoS Config Model, to allow
  48. or block the user to let Orders in slate;
  49. Copyright, Authors and Licence:
  50. -------------------------------
  51. * Copyright:
  52. * 2013-Today, GRAP: Groupement Régional Alimentaire de Proximité;
  53. * Author:
  54. * Julien WESTE;
  55. * Sylvain LE GAL (https://twitter.com/legalsylvain);
  56. * Licence: AGPL-3 (http://www.gnu.org/licenses/);""",
  57. 'author': 'GRAP',
  58. 'website': 'http://www.grap.coop',
  59. 'license': 'AGPL-3',
  60. 'depends': [
  61. 'point_of_sale',
  62. ],
  63. 'data': [
  64. 'view/view.xml',
  65. ],
  66. 'demo': [
  67. 'demo/pos_config.yml',
  68. ],
  69. }