Debian Codegraph @

addons/point_of_sale/__manifest__.py

raw
1 # -*- coding: utf-8 -*-
2 # Part of Odoo. See LICENSE file for full copyright and licensing details.
3
4 {
5 'name': 'Point of Sale',
6 'version': '1.0.2',
7 'category': 'Sales/Point of Sale',
8 'sequence': 40,
9 'summary': 'Handle checkouts and payments for shops and restaurants.',
10 'depends': ['resource', 'stock_account', 'barcodes', 'html_editor', 'digest', 'phone_validation', 'partner_autocomplete', 'iot_base', 'google_address_autocomplete'],
11 'uninstall_hook': 'uninstall_hook',
12 'data': [
13 'security/point_of_sale_security.xml',
14 'security/ir.model.access.csv',
15 'data/default_barcode_patterns.xml',
16 'data/digest_data.xml',
17 'data/pos_note_data.xml',
18 'data/point_of_sale_tour.xml',
19 'data/mail_template_data.xml',
20 'data/ir_config_parameter_data.xml',
21 'wizard/pos_details.xml',
22 'wizard/pos_payment.xml',
23 'wizard/pos_close_session_wizard.xml',
24 'wizard/pos_daily_sales_reports.xml',
25 'wizard/pos_confirmation_wizard.xml',
26 'wizard/pos_make_invoice.xml',
27 'views/pos_assets_index.xml',
28 'views/point_of_sale_report.xml',
29 'views/point_of_sale_view.xml',
30 'views/pos_note_view.xml',
31 'views/pos_order_view.xml',
32 'views/pos_category_view.xml',
33 'views/product_combo_views.xml',
34 'views/product_view.xml',
35 'views/account_journal_view.xml',
36 'views/pos_payment_method_views.xml',
37 'views/pos_payment_views.xml',
38 'views/pos_config_view.xml',
39 'views/pos_bill_view.xml',
40 'views/pos_session_view.xml',
41 'views/point_of_sale_sequence.xml',
42 'data/point_of_sale_data.xml',
43 'views/pos_order_report_view.xml',
44 'views/digest_views.xml',
45 'views/res_partner_view.xml',
46 'views/report_userlabel.xml',
47 'views/report_saledetails.xml',
48 'views/pos_preset_view.xml',
49 'views/point_of_sale_dashboard.xml',
50 'views/report_invoice.xml',
51 'views/pos_printer_view.xml',
52 'views/pos_ticket_view.xml',
53 'views/res_config_settings_views.xml',
54 'views/customer_display_index.xml',
55 'views/account_move_views.xml',
56 'views/pos_session_sales_details.xml',
57 'views/product_tag_views.xml',
58 'views/stock_reference_views.xml',
59 ],
60 'demo': [
61 'data/demo_data.xml',
62 ],
63 'installable': True,
64 'application': True,
65 'website': 'https://www.odoo.com/app/point-of-sale-shop',
66 'assets': {
67
68 # In general, you DON'T NEED to declare new assets here, just put the
69 # files in the proper directory. In rare cases, the order of scss files
70 # matter and in that case you'll need to add it to the bundle in the
71 # correct spot.
72 #
73 # Files in /static/src/backend will be loaded in the backend
74 # Files in /static/src/app will be loaded in the PoS UI
75 # Files in /static/tests/tours will be loaded in the backend in test mode
76 # Files in /static/tests/unit will be loaded in the unit tests
77
78 # web assets
79 'web.assets_backend': [
80 'point_of_sale/static/src/scss/pos_dashboard.scss',
81 'point_of_sale/static/src/backend/tours/point_of_sale.js',
82 'point_of_sale/static/src/backend/pos_kanban_view/*',
83 'point_of_sale/static/src/backend/pos_payment_provider_cards/*',
84 'point_of_sale/static/src/app/hooks/hooks.js',
85 'point_of_sale/static/src/backend/many2many_placeholder_list_view/*',
86 'point_of_sale/static/src/backend/test_epos/*',
87 ],
88 "web.assets_web_dark": [
89 'point_of_sale/static/src/scss/pos_dashboard.dark.scss',
90 ],
91 'web.assets_tests': [
92 'barcodes/static/tests/legacy/helpers.js',
93 'point_of_sale/static/tests/pos/tours/**/*',
94 'point_of_sale/static/tests/generic_helpers/**/*',
95 'point_of_sale/static/tests/customer_display/**/*',
96 'point_of_sale/static/src/utils.js',
97 ],
98 'web.assets_unit_tests_setup': [
99 ('include', 'point_of_sale.assets_prod'),
100 ('remove', 'point_of_sale/static/src/app/main.js'),
101
102 # Remove CSS files since we're not testing the UI with hoot in PoS
103 # CSS files make html_editor tests fail
104 ('remove', 'point_of_sale/static/src/**/*.css'),
105
106 # Adding error handler back since they are removed in the prod bundle
107 'web/static/src/core/errors/error_handlers.js',
108 'web/static/src/core/dialog/dialog.scss',
109 ],
110 'web.assets_unit_tests': [
111 'point_of_sale/static/tests/unit/**/*',
112 ],
113
114 # PoS assets
115 'point_of_sale.base_app': [
116 ("include", "web._assets_helpers"),
117 ("include", "web._assets_backend_helpers"),
118 "web/static/src/scss/pre_variables.scss",
119 "web/static/lib/bootstrap/scss/_variables.scss",
120 'web/static/lib/bootstrap/scss/_variables-dark.scss',
121 'web/static/lib/bootstrap/scss/_maps.scss',
122 ("include", "web._assets_bootstrap_backend"),
123 ('include', 'web._assets_core'),
124 ("remove", "web/static/src/core/browser/router.js"),
125 ("remove", "web/static/src/core/debug/**/*"),
126 "web/static/src/libs/fontawesome/css/font-awesome.css",
127 "web/static/src/views/fields/formatters.js",
128 "web/static/lib/odoo_ui_icons/*",
129 "point_of_sale/static/src/utils.js",
130 'bus/static/src/services/bus_service.js',
131 'bus/static/src/services/worker_service.js',
132 'bus/static/src/bus_parameters_service.js',
133 'bus/static/src/legacy_multi_tab_service.js',
134 'bus/static/src/multi_tab_service.js',
135 'bus/static/src/multi_tab_shared_worker_service.js',
136 'bus/static/src/multi_tab_fallback_service.js',
137 'bus/static/src/workers/*',
138 'iot_base/static/src/network_utils/*',
139 'iot_base/static/src/device_controller.js',
140 ],
141
142 # Main PoS assets, they are loaded in the PoS UI
143 'point_of_sale._assets_pos': [
144 'web/static/src/scss/functions.scss',
145
146 # JS boot
147 'web/static/src/module_loader.js',
148 # libs (should be loaded before framework)
149 'point_of_sale/static/lib/**/*',
150 'web/static/lib/luxon/luxon.js',
151 'web/static/lib/owl/owl.js',
152 'web/static/lib/owl/odoo_module.js',
153 'web/static/lib/zxing-library/zxing-library.js',
154
155
156 ('include', 'point_of_sale.base_app'),
157
158 'web/static/src/core/colorlist/colorlist.scss',
159 'web/static/src/webclient/webclient_layout.scss',
160
161 'web/static/src/webclient/icons.scss',
162
163 # scss variables and utilities
164 'point_of_sale/static/src/scss/pos_variables_extra.scss',
165 'web/static/src/scss/bootstrap_overridden.scss',
166 'web/static/src/scss/fontawesome_overridden.scss',
167 'web/static/fonts/fonts.scss',
168 "web/static/src/scss/ui.scss",
169
170 ('remove', 'web/static/src/core/errors/error_handlers.js'), # error handling in PoS is different from the webclient
171 ('remove', '/web/static/src/core/dialog/dialog.scss'),
172 'web/static/src/core/currency.js',
173 # barcode scanner
174 'barcodes/static/src/barcode_service.js',
175 'barcodes/static/src/js/barcode_parser.js',
176 'barcodes_gs1_nomenclature/static/src/js/barcode_parser.js',
177 'barcodes_gs1_nomenclature/static/src/js/barcode_service.js',
178 # report download utils
179 'web/static/src/webclient/actions/reports/utils.js',
180 # PoS files
181 'point_of_sale/static/src/**/*',
182 ('remove', 'point_of_sale/static/src/backend/**/*'),
183 ('remove', 'point_of_sale/static/src/customer_display/**/*'),
184 'point_of_sale/static/src/customer_display/utils.js',
185 # main.js boots the pos app, it is only included in the prod bundle as tests mount the app themselves
186 ('remove', 'point_of_sale/static/src/app/main.js'),
187 ("include", "point_of_sale.base_tests"),
188 # account
189 'account/static/src/helpers/*.js',
190 'account/static/src/services/account_move_service.js',
191
192 'mail/static/src/core/common/sound_effects_service.js',
193 "web/static/src/core/browser/router.js",
194 "web/static/src/core/debug/**/*",
195 'web/static/src/model/**/*',
196 'web/static/src/views/**/*',
197 'web/static/src/search/**/*',
198 'web/static/src/webclient/actions/**/*',
199 ('remove', 'web/static/src/webclient/actions/reports/layout_assets/**/*'),
200 ('remove', 'web/static/src/webclient/actions/**/*css'),
201 'partner_autocomplete/static/src/**/*',
202 'google_address_autocomplete/static/src/**/*',
203 ],
204 'point_of_sale.base_tests': [
205 "web/static/lib/hoot-dom/**/*",
206 "web_tour/static/src/js/**/*",
207 'web_tour/static/src/tour_utils.js',
208 "barcodes/static/tests/legacy/helpers.js",
209 "web/static/tests/legacy/helpers/utils.js",
210 "web/static/tests/legacy/helpers/cleanup.js",
211 'iot_base/static/src/network_utils/*',
212 'iot_base/static/src/device_controller.js',
213 ],
214 # Bundle that starts the pos, loaded on /pos/ui
215 'point_of_sale.assets_prod': [
216 ('include', 'point_of_sale._assets_pos'),
217 'point_of_sale/static/src/app/main.js',
218 ],
219 'point_of_sale.assets_prod_dark': [
220 ('include', 'point_of_sale.assets_prod'),
221 ],
222 'point_of_sale.customer_display_assets': [
223 ('include', 'point_of_sale.base_app'),
224 "point_of_sale/static/src/app/components/odoo_logo/*",
225 "point_of_sale/static/src/app/components/orderline/*",
226 "point_of_sale/static/src/app/components/centered_icon/*",
227 "point_of_sale/static/src/app/utils/use_timed_press.js",
228 "point_of_sale/static/src/utils.js",
229 "point_of_sale/static/src/customer_display/**/*",
230 ],
231 'point_of_sale.customer_display_assets_test': [
232 ('include', 'point_of_sale.base_tests'),
233 "point_of_sale/static/tests/pos/tours/utils/common.js",
234 "point_of_sale/static/tests/generic_helpers/order_widget_util.js",
235 "point_of_sale/static/tests/generic_helpers/utils.js",
236 "point_of_sale/static/tests/customer_display/customer_display_utils.js",
237 "point_of_sale/static/tests/customer_display/customer_display_tour.js",
238 ],
239 'point_of_sale.assets_debug': [
240 ('include', 'point_of_sale.base_tests'),
241 'barcodes/static/tests/legacy/helpers.js',
242 'point_of_sale/static/tests/generic_helpers/**/*',
243 'point_of_sale/static/tests/pos/tours/**/*',
244 ],
245 },
246 'author': 'Odoo S.A.',
247 'license': 'LGPL-3',
248 }