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.

68 lines
2.5 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Point Of Sale - Check Session State module for OpenERP
  5. # Copyright (C) 2015 GRAP (http://www.grap.coop)
  6. # @author Sylvain LE GAL (https://twitter.com/legalsylvain)
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU Affero General Public License as
  10. # published by the Free Software Foundation, either version 3 of the
  11. # License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU Affero General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Affero General Public License
  19. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. #
  21. ##############################################################################
  22. {
  23. 'name': 'Point Of Sale - Check Session State',
  24. 'summary': 'Check if the session state is still opened',
  25. 'version': '0.1',
  26. 'category': 'Point Of Sale',
  27. 'description': """
  28. Check if the session state is still opened
  29. ==========================================
  30. Context:
  31. --------
  32. In Point Of Sale module, the front-end works offline, so all datas are
  33. loaded at the beginning.
  34. At the end of the session, if user do not close the window, it will be
  35. possible to create new pos order on a closed session, generating errors.
  36. Functionality:
  37. --------------
  38. * This module prevent the possility to create a pos order via the front
  39. end PoS UI, when session is closed.
  40. * The session state is checked every 10 seconds. If the state of the
  41. session is not opened, a blocking pop up is displayed, and user has to
  42. reload the current page.
  43. Copyright, Authors and Licence:
  44. -------------------------------
  45. * Copyright: 2015, GRAP: Groupement Régional Alimentaire de Proximité;
  46. * Author:
  47. * Sylvain LE GAL (https://twitter.com/legalsylvain);
  48. * Licence: AGPL-3 (http://www.gnu.org/licenses/);""",
  49. 'author': "GRAP,Odoo Community Association (OCA)",
  50. 'website': 'http://www.grap.coop',
  51. 'license': 'AGPL-3',
  52. 'depends': [
  53. 'point_of_sale',
  54. ],
  55. 'qweb': [
  56. 'static/src/xml/pos_check_session_state.xml',
  57. ],
  58. 'js': [
  59. 'static/src/js/pos_check_session_state.js',
  60. ],
  61. 'css': [
  62. 'static/src/css/pos_check_session_state.css',
  63. ],
  64. }