__manifest__.py 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. {
  4. 'name': 'Point of Sale',
  5. 'version': '1.0.1',
  6. 'category': 'Sales/Point of Sale',
  7. 'sequence': 40,
  8. 'summary': 'User-friendly PoS interface for shops and restaurants',
  9. 'depends': ['stock_account', 'barcodes', 'web_editor', 'digest'],
  10. 'data': [
  11. 'security/point_of_sale_security.xml',
  12. 'security/ir.model.access.csv',
  13. 'data/default_barcode_patterns.xml',
  14. 'data/digest_data.xml',
  15. 'wizard/pos_details.xml',
  16. 'wizard/pos_payment.xml',
  17. 'wizard/pos_close_session_wizard.xml',
  18. 'wizard/pos_session_check_product_wizard.xml',
  19. 'views/pos_assets_common.xml',
  20. 'views/pos_assets_index.xml',
  21. 'views/pos_assets_qunit.xml',
  22. 'views/point_of_sale_report.xml',
  23. 'views/point_of_sale_view.xml',
  24. 'views/pos_order_view.xml',
  25. 'views/pos_category_view.xml',
  26. 'views/product_view.xml',
  27. 'views/account_journal_view.xml',
  28. 'views/pos_payment_method_views.xml',
  29. 'views/pos_payment_views.xml',
  30. 'views/pos_config_view.xml',
  31. 'views/pos_bill_view.xml',
  32. 'views/pos_session_view.xml',
  33. 'views/point_of_sale_sequence.xml',
  34. 'data/point_of_sale_data.xml',
  35. 'views/pos_order_report_view.xml',
  36. 'views/account_statement_view.xml',
  37. 'views/digest_views.xml',
  38. 'views/res_partner_view.xml',
  39. 'views/report_userlabel.xml',
  40. 'views/report_saledetails.xml',
  41. 'views/point_of_sale_dashboard.xml',
  42. 'views/report_invoice.xml',
  43. 'views/res_config_settings_views.xml',
  44. 'views/pos_ticket_view.xml',
  45. ],
  46. 'demo': [
  47. 'data/point_of_sale_demo.xml',
  48. ],
  49. 'installable': True,
  50. 'application': True,
  51. 'website': 'https://www.odoo.com/app/point-of-sale-shop',
  52. 'assets': {
  53. ## In general, you DON'T NEED to declare new assets here, just put the files in the proper directory.
  54. ## NOTABLE EXCEPTION: List the new .css files in the `point_of_sale.assets` bundle taking into consideration
  55. ## the order of the .css files.
  56. ##
  57. ## 1. When defining new component, put the .js files in `point_of_sale/static/src/js/`
  58. ## and the corresponding .xml files in `point_of_sale/static/src/xml/`
  59. ## * POS is setup to automatically include the .xml and `.js` files in `point_of_sale.assets`.
  60. ## 2. When adding new tour tests, put the .js files in `point_of_sale/static/tests/tours/`.
  61. ## 3. When adding new qunit tests, put the .js files in `point_of_sale/static/tests/unit/`.
  62. ##
  63. ## If your use case doesn't fit anything above, you might need to properly understand each "asset bundle"
  64. ## defined here and check how they are used in the following "index templates":
  65. ## 1. point_of_sale.index
  66. ## -> This is the POS UI, accessible by opening a session.
  67. ## 2. point_of_sale.qunit_suite
  68. ## -> This is the unit test, accessible by clicking the "Run Point of Sale JS Tests" button
  69. ## in the "debug" button from the backend interface.
  70. #####################################
  71. ## Augmentation of existing assets ##
  72. #####################################
  73. 'web.assets_backend': [
  74. 'point_of_sale/static/src/scss/pos_dashboard.scss',
  75. 'point_of_sale/static/src/backend/tours/point_of_sale.js',
  76. 'point_of_sale/static/src/backend/debug_manager.js',
  77. ],
  78. 'web.assets_tests': [
  79. 'point_of_sale/static/tests/tours/**/*',
  80. ],
  81. ####################################################
  82. ## Exclusive POS Assets 1: For running the POS UI ##
  83. ####################################################
  84. 'point_of_sale.pos_assets_backend_style': [
  85. "web/static/src/core/ui/**/*.scss",
  86. ],
  87. # TODO: We need to control this asset bundle.
  88. # We can reduce the size of loaded assets in POS UI by selectively
  89. # loading the `web` assets. We should only include what POS needs.
  90. 'point_of_sale.pos_assets_backend': [
  91. ('include', 'web.assets_backend'),
  92. ('remove', 'web/static/src/core/errors/error_handlers.js'),
  93. ('remove', 'web/static/src/legacy/legacy_rpc_error_handler.js'),
  94. ],
  95. # This bundle includes the main pos assets.
  96. 'point_of_sale.assets': [
  97. 'point_of_sale/static/src/scss/pos_variables_extra.scss',
  98. ('include', 'web._assets_helpers'),
  99. ('include', 'web._assets_backend_helpers'),
  100. ('include', 'web._assets_primary_variables'),
  101. 'web/static/lib/bootstrap/scss/_functions.scss',
  102. 'web/static/lib/bootstrap/scss/_variables.scss',
  103. 'web/static/fonts/fonts.scss',
  104. 'web/static/src/libs/fontawesome/css/font-awesome.css',
  105. 'web/static/lib/daterangepicker/daterangepicker.css',
  106. 'point_of_sale/static/src/scss/pos.scss',
  107. 'point_of_sale/static/src/css/pos_receipts.css',
  108. 'point_of_sale/static/src/css/popups/product_info_popup.css',
  109. 'point_of_sale/static/src/css/popups/common.css',
  110. 'point_of_sale/static/src/css/popups/cash_opening_popup.css',
  111. 'point_of_sale/static/src/css/popups/closing_pos_popup.css',
  112. 'point_of_sale/static/src/css/popups/money_details_popup.css',
  113. 'web/static/src/legacy/scss/fontawesome_overridden.scss',
  114. # Here includes the lib and POS UI assets.
  115. 'point_of_sale/static/lib/**/*.js',
  116. 'web_editor/static/lib/html2canvas.js',
  117. 'point_of_sale/static/src/js/**/*.js',
  118. 'web/static/lib/zxing-library/zxing-library.js',
  119. 'point_of_sale/static/src/xml/**/*.xml',
  120. ],
  121. # This bundle contains the code responsible for starting the POS UI.
  122. # It is practically the entry point.
  123. 'point_of_sale.assets_backend_prod_only': [
  124. 'point_of_sale/static/src/entry/chrome_adapter.js',
  125. 'point_of_sale/static/src/entry/main.js',
  126. 'web/static/src/start.js',
  127. 'web/static/src/legacy/legacy_setup.js',
  128. ],
  129. #########################################################
  130. ## Exclusive POS Assets 2: For running the QUnit tests ##
  131. #########################################################
  132. # This bundle includes the helper assets for the unit testing.
  133. 'point_of_sale.tests_assets': [
  134. 'web/static/lib/qunit/qunit-2.9.1.css',
  135. 'web/static/lib/qunit/qunit-2.9.1.js',
  136. 'web/static/tests/legacy/helpers/**/*',
  137. ('remove', 'web/static/tests/legacy/helpers/test_utils_tests.js'),
  138. 'web/static/tests/legacy/legacy_setup.js',
  139. 'web/static/tests/helpers/**/*.js',
  140. 'web/static/tests/qunit.js',
  141. 'web/static/tests/main.js',
  142. 'web/static/tests/setup.js',
  143. # These 2 lines below are taken from web.assets_frontend
  144. # They're required for the web.frontend_legacy to work properly
  145. # It is expected to add other lines coming from the web.assets_frontend
  146. # if we need to add more and more legacy stuff that would require other scss or js.
  147. ('include', 'web._assets_helpers'),
  148. 'web/static/src/scss/pre_variables.scss',
  149. 'web/static/lib/bootstrap/scss/_variables.scss',
  150. ('include', 'web.frontend_legacy'),
  151. ],
  152. # This bundle includes the unit tests.
  153. 'point_of_sale.qunit_suite_tests': [
  154. 'point_of_sale/static/tests/unit/**/*',
  155. ],
  156. },
  157. 'license': 'LGPL-3',
  158. }