__manifest__.py 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. {
  4. 'name': 'Web',
  5. 'category': 'Hidden',
  6. 'version': '1.0',
  7. 'description': """
  8. Odoo Web core module.
  9. ========================
  10. This module provides the core of the Odoo Web Client.
  11. """,
  12. 'depends': ['base'],
  13. 'auto_install': True,
  14. 'data': [
  15. 'security/ir.model.access.csv',
  16. 'views/webclient_templates.xml',
  17. 'views/report_templates.xml',
  18. 'views/base_document_layout_views.xml',
  19. 'views/speedscope_template.xml',
  20. 'views/lazy_assets.xml',
  21. 'views/neutralize_views.xml',
  22. 'data/ir_attachment.xml',
  23. 'data/report_layout.xml',
  24. ],
  25. 'assets': {
  26. # ---------------------------------------------------------------------
  27. # MAIN BUNDLES
  28. # ---------------------------------------------------------------------
  29. # These are the bundles meant to be called via "t-call-assets" in
  30. # regular XML templates.
  31. #
  32. # The convention to name bundles is as following:
  33. # 1) the name of the first module defining the bundle
  34. # 2) the prefix "assets_"
  35. # 3) an arbitrary name, relevant to the content of the bundle.
  36. #
  37. # Examples:
  38. # > web.assets_common = assets common to backend clients and others
  39. # (not frontend).
  40. # > web_editor.assets_wysiwyg = assets needed by components defined in the "web_editor" module.
  41. # Warning: Layouts using "assets_frontend" assets do not have the
  42. # "assets_common" assets anymore. So, if it make sense, files added in
  43. # "assets_common" should also be added in "assets_frontend".
  44. # TODO in the future, probably remove "assets_common" definition
  45. # entirely and let all "main" bundles evolve on their own, including the
  46. # files they need in their bundle.
  47. 'web.assets_common': [
  48. ('include', 'web._assets_helpers'),
  49. 'web/static/src/scss/pre_variables.scss',
  50. 'web/static/lib/bootstrap/scss/_variables.scss',
  51. 'web/static/src/legacy/scss/tempusdominus_overridden.scss',
  52. 'web/static/lib/tempusdominus/tempusdominus.scss',
  53. 'web/static/lib/jquery.ui/jquery-ui.css',
  54. 'web/static/src/libs/fontawesome/css/font-awesome.css',
  55. 'web/static/lib/odoo_ui_icons/*',
  56. 'web/static/lib/select2/select2.css',
  57. 'web/static/lib/select2-bootstrap-css/select2-bootstrap.css',
  58. 'web/static/lib/daterangepicker/daterangepicker.css',
  59. 'web/static/src/webclient/navbar/navbar.scss',
  60. 'web/static/src/legacy/scss/ui.scss',
  61. 'web/static/src/legacy/scss/mimetypes.scss',
  62. 'web/static/src/legacy/scss/modal.scss',
  63. 'web/static/src/legacy/scss/animation.scss',
  64. 'web/static/src/legacy/scss/datepicker.scss',
  65. 'web/static/src/legacy/scss/daterangepicker.scss',
  66. 'web/static/src/legacy/scss/banner.scss',
  67. 'web/static/src/legacy/scss/colorpicker.scss',
  68. 'web/static/src/legacy/scss/popover.scss',
  69. 'web/static/src/legacy/scss/translation_dialog.scss',
  70. 'web/static/src/legacy/scss/keyboard.scss',
  71. 'web/static/src/legacy/scss/name_and_signature.scss',
  72. 'web/static/src/legacy/scss/web.zoomodoo.scss',
  73. 'web/static/src/legacy/scss/fontawesome_overridden.scss',
  74. 'web/static/src/legacy/js/promise_extension.js',
  75. 'web/static/src/boot.js',
  76. 'web/static/src/session.js',
  77. 'web/static/src/legacy/js/core/cookie_utils.js',
  78. 'web/static/lib/underscore/underscore.js',
  79. 'web/static/lib/underscore.string/lib/underscore.string.js',
  80. 'web/static/lib/moment/moment.js',
  81. 'web/static/lib/luxon/luxon.js',
  82. 'web/static/lib/owl/owl.js',
  83. 'web/static/lib/owl/odoo_module.js',
  84. 'web/static/src/owl2_compatibility/*.js',
  85. 'web/static/src/legacy/js/component_extension.js',
  86. 'web/static/src/legacy/legacy_component.js',
  87. 'web/static/lib/jquery/jquery.js',
  88. 'web/static/lib/jquery.ui/jquery-ui.js',
  89. 'web/static/lib/jquery/jquery.browser.js',
  90. 'web/static/lib/jquery.blockUI/jquery.blockUI.js',
  91. 'web/static/lib/jquery.hotkeys/jquery.hotkeys.js',
  92. 'web/static/lib/jquery.placeholder/jquery.placeholder.js',
  93. 'web/static/lib/jquery.form/jquery.form.js',
  94. 'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
  95. 'web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js',
  96. 'web/static/lib/popper/popper.js',
  97. 'web/static/lib/bootstrap/js/dist/dom/data.js',
  98. 'web/static/lib/bootstrap/js/dist/dom/event-handler.js',
  99. 'web/static/lib/bootstrap/js/dist/dom/manipulator.js',
  100. 'web/static/lib/bootstrap/js/dist/dom/selector-engine.js',
  101. 'web/static/lib/bootstrap/js/dist/base-component.js',
  102. 'web/static/lib/bootstrap/js/dist/alert.js',
  103. 'web/static/lib/bootstrap/js/dist/button.js',
  104. 'web/static/lib/bootstrap/js/dist/carousel.js',
  105. 'web/static/lib/bootstrap/js/dist/collapse.js',
  106. 'web/static/lib/bootstrap/js/dist/dropdown.js',
  107. 'web/static/lib/bootstrap/js/dist/modal.js',
  108. 'web/static/lib/bootstrap/js/dist/offcanvas.js',
  109. 'web/static/lib/bootstrap/js/dist/tooltip.js',
  110. 'web/static/lib/bootstrap/js/dist/popover.js',
  111. 'web/static/lib/bootstrap/js/dist/scrollspy.js',
  112. 'web/static/lib/bootstrap/js/dist/tab.js',
  113. 'web/static/lib/bootstrap/js/dist/toast.js',
  114. 'web/static/lib/tempusdominus/tempusdominus.js',
  115. 'web/static/lib/select2/select2.js',
  116. 'web/static/lib/clipboard/clipboard.js',
  117. 'web/static/lib/jSignature/jSignatureCustom.js',
  118. 'web/static/lib/qweb/qweb2.js',
  119. 'web/static/src/legacy/js/assets.js',
  120. 'web/static/src/legacy/js/libs/autocomplete.js',
  121. 'web/static/src/legacy/js/libs/bootstrap.js',
  122. 'web/static/src/legacy/js/libs/content-disposition.js',
  123. 'web/static/src/legacy/js/libs/download.js',
  124. 'web/static/src/legacy/js/libs/jquery.js',
  125. 'web/static/src/legacy/js/libs/moment.js',
  126. 'web/static/src/legacy/js/libs/underscore.js',
  127. 'web/static/src/legacy/js/libs/pdfjs.js',
  128. 'web/static/src/legacy/js/libs/zoomodoo.js',
  129. 'web/static/src/legacy/js/libs/jSignatureCustom.js',
  130. 'web/static/src/legacy/js/core/abstract_service.js',
  131. 'web/static/src/legacy/js/core/abstract_storage_service.js',
  132. 'web/static/src/legacy/js/core/ajax.js',
  133. 'web/static/src/legacy/js/core/browser_detection.js',
  134. 'web/static/src/legacy/js/core/bus.js',
  135. 'web/static/src/legacy/js/core/class.js',
  136. 'web/static/src/legacy/js/core/collections.js',
  137. 'web/static/src/legacy/js/core/concurrency.js',
  138. 'web/static/src/legacy/js/core/dialog.js',
  139. 'web/static/src/legacy/xml/dialog.xml',
  140. 'web/static/src/legacy/js/core/owl_dialog.js',
  141. 'web/static/src/legacy/js/core/popover.js',
  142. 'web/static/src/legacy/js/core/dom.js',
  143. 'web/static/src/legacy/js/core/local_storage.js',
  144. 'web/static/src/legacy/js/core/mixins.js',
  145. 'web/static/src/legacy/js/core/qweb.js',
  146. 'web/static/src/legacy/js/core/ram_storage.js',
  147. 'web/static/src/legacy/js/core/registry.js',
  148. 'web/static/src/legacy/js/core/rpc.js',
  149. 'web/static/src/legacy/js/core/service_mixins.js',
  150. 'web/static/src/legacy/js/core/session.js',
  151. 'web/static/src/legacy/js/core/session_storage.js',
  152. 'web/static/src/legacy/js/core/time.js',
  153. 'web/static/src/legacy/js/core/translation.js',
  154. 'web/static/src/legacy/js/core/utils.js',
  155. 'web/static/src/legacy/js/core/widget.js',
  156. 'web/static/src/legacy/js/services/ajax_service.js',
  157. 'web/static/src/legacy/js/services/config.js',
  158. 'web/static/src/legacy/js/services/core.js',
  159. 'web/static/src/legacy/js/services/local_storage_service.js',
  160. 'web/static/src/legacy/js/services/session_storage_service.js',
  161. 'web/static/src/legacy/js/common_env.js',
  162. 'web/static/src/legacy/js/widgets/name_and_signature.js',
  163. 'web/static/src/legacy/xml/name_and_signature.xml',
  164. 'web/static/src/legacy/js/core/smooth_scroll_on_drag.js',
  165. 'web/static/src/legacy/js/widgets/colorpicker.js',
  166. 'web/static/src/legacy/xml/colorpicker.xml',
  167. 'web/static/src/legacy/js/widgets/translation_dialog.js',
  168. 'web/static/src/legacy/xml/translation_dialog.xml',
  169. ],
  170. 'web.assets_backend': [
  171. ('include', 'web._assets_helpers'),
  172. ('include', 'web._assets_backend_helpers'),
  173. 'web/static/src/scss/pre_variables.scss',
  174. 'web/static/lib/bootstrap/scss/_variables.scss',
  175. ('include', 'web._assets_bootstrap'),
  176. 'base/static/src/css/modules.css',
  177. 'web/static/src/core/utils/transitions.scss',
  178. 'web/static/src/core/**/*',
  179. 'web/static/src/search/**/*',
  180. 'web/static/src/webclient/icons.scss', # variables required in list_controller.scss
  181. 'web/static/src/views/**/*',
  182. 'web/static/src/webclient/**/*',
  183. ('remove', 'web/static/src/webclient/navbar/navbar.scss'), # already in assets_common
  184. ('remove', 'web/static/src/webclient/clickbot/clickbot.js'), # lazy loaded
  185. ('remove', 'web/static/src/views/form/button_box/*.scss'),
  186. # remove the report code and whitelist only what's needed
  187. ('remove', 'web/static/src/webclient/actions/reports/**/*'),
  188. 'web/static/src/webclient/actions/reports/*.js',
  189. 'web/static/src/webclient/actions/reports/*.xml',
  190. 'web/static/src/env.js',
  191. 'web/static/lib/jquery.scrollTo/jquery.scrollTo.js',
  192. 'web/static/lib/py.js/lib/py.js',
  193. 'web/static/lib/py.js/lib/py_extras.js',
  194. 'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
  195. 'web/static/src/legacy/scss/domain_selector.scss',
  196. 'web/static/src/legacy/scss/model_field_selector.scss',
  197. 'web/static/src/legacy/scss/dropdown.scss',
  198. 'web/static/src/legacy/scss/tooltip.scss',
  199. 'web/static/src/legacy/scss/switch_company_menu.scss',
  200. 'web/static/src/legacy/scss/ace.scss',
  201. 'web/static/src/legacy/scss/fields.scss',
  202. 'web/static/src/legacy/scss/views.scss',
  203. 'web/static/src/legacy/scss/form_view.scss',
  204. 'web/static/src/legacy/scss/list_view.scss',
  205. 'web/static/src/legacy/scss/kanban_dashboard.scss',
  206. 'web/static/src/legacy/scss/kanban_examples_dialog.scss',
  207. 'web/static/src/legacy/scss/kanban_column_progressbar.scss',
  208. 'web/static/src/legacy/scss/kanban_view.scss',
  209. 'web/static/src/legacy/scss/data_export.scss',
  210. 'base/static/src/scss/onboarding.scss',
  211. 'web/static/src/legacy/scss/attachment_preview.scss',
  212. 'web/static/src/legacy/scss/base_document_layout.scss',
  213. 'web/static/src/legacy/scss/special_fields.scss',
  214. 'web/static/src/legacy/scss/fields_extra.scss',
  215. 'web/static/src/legacy/scss/form_view_extra.scss',
  216. 'web/static/src/legacy/scss/list_view_extra.scss',
  217. 'web/static/src/legacy/scss/color_picker.scss',
  218. 'base/static/src/scss/res_partner.scss',
  219. # Form style should be computed before
  220. 'web/static/src/views/form/button_box/*.scss',
  221. 'web/static/src/legacy/action_adapters.js',
  222. 'web/static/src/legacy/debug_manager.js',
  223. 'web/static/src/legacy/legacy_service_provider.js',
  224. 'web/static/src/legacy/legacy_client_actions.js',
  225. 'web/static/src/legacy/legacy_dialog.js',
  226. 'web/static/src/legacy/legacy_load_views.js',
  227. 'web/static/src/legacy/legacy_views.js',
  228. 'web/static/src/legacy/legacy_promise_error_handler.js',
  229. 'web/static/src/legacy/legacy_rpc_error_handler.js',
  230. 'web/static/src/legacy/root_widget.js',
  231. 'web/static/src/legacy/systray_menu.js',
  232. 'web/static/src/legacy/systray_menu_item.js',
  233. 'web/static/src/legacy/backend_utils.js',
  234. 'web/static/src/legacy/utils.js',
  235. 'web/static/src/legacy/web_client.js',
  236. 'web/static/src/legacy/js/_deprecated/*',
  237. 'web/static/src/legacy/js/chrome/*',
  238. 'web/static/src/legacy/js/components/*',
  239. 'web/static/src/legacy/js/control_panel/*',
  240. 'web/static/src/legacy/js/core/domain.js',
  241. 'web/static/src/legacy/js/core/mvc.js',
  242. 'web/static/src/legacy/js/core/py_utils.js',
  243. 'web/static/src/legacy/js/core/context.js',
  244. 'web/static/src/legacy/js/core/misc.js',
  245. 'web/static/src/legacy/js/fields/*',
  246. 'web/static/src/legacy/js/services/data_manager.js',
  247. 'web/static/src/legacy/js/services/session.js',
  248. 'web/static/src/legacy/js/tools/tools.js',
  249. 'web/static/src/legacy/js/views/**/*',
  250. 'web/static/src/legacy/js/widgets/data_export.js',
  251. 'web/static/src/legacy/js/widgets/date_picker.js',
  252. 'web/static/src/legacy/js/widgets/domain_selector_dialog.js',
  253. 'web/static/src/legacy/js/widgets/domain_selector.js',
  254. 'web/static/src/legacy/js/widgets/iframe_widget.js',
  255. 'web/static/src/legacy/js/widgets/model_field_selector.js',
  256. 'web/static/src/legacy/js/widgets/model_field_selector_popover.js',
  257. 'web/static/src/legacy/js/widgets/ribbon.js',
  258. 'web/static/src/legacy/js/widgets/week_days.js',
  259. 'web/static/src/legacy/js/widgets/signature.js',
  260. 'web/static/src/legacy/js/widgets/attach_document.js',
  261. 'web/static/src/legacy/js/apps.js',
  262. 'web/static/src/legacy/js/env.js',
  263. 'web/static/src/legacy/js/model.js',
  264. 'web/static/src/legacy/js/owl_compatibility.js',
  265. 'web/static/src/legacy/xml/base.xml',
  266. 'web/static/src/legacy/xml/ribbon.xml',
  267. 'web/static/src/legacy/xml/control_panel.xml',
  268. 'web/static/src/legacy/xml/fields.xml',
  269. 'web/static/src/legacy/xml/kanban.xml',
  270. 'web/static/src/legacy/xml/search_panel.xml',
  271. 'web/static/src/legacy/xml/week_days.xml',
  272. # Don't include dark mode files in light mode
  273. ('remove', 'web/static/src/**/*.dark.scss'),
  274. ],
  275. "web.assets_backend_legacy_lazy": [
  276. ("include", "web._assets_helpers"),
  277. ('include', 'web._assets_backend_helpers'),
  278. 'web/static/src/scss/pre_variables.scss',
  279. 'web/static/lib/bootstrap/scss/_variables.scss',
  280. ],
  281. 'web.assets_frontend_minimal': [
  282. 'web/static/src/legacy/js/promise_extension.js',
  283. 'web/static/src/boot.js',
  284. 'web/static/src/session.js',
  285. 'web/static/src/legacy/js/core/cookie_utils.js',
  286. 'web/static/src/legacy/js/core/menu.js',
  287. 'web/static/src/legacy/js/public/lazyloader.js',
  288. ],
  289. 'web.assets_frontend': [
  290. # TODO the 'assets_frontend' bundle now includes 'assets_common'
  291. # files directly. That work was however a good opportunity to start
  292. # removing the files that are not needed anymore in frontend layouts
  293. # but it was not done: all common files were simply put in this
  294. # bundle. We'll have to optimize that.
  295. ('include', 'web._assets_helpers'),
  296. ('include', 'web._assets_frontend_helpers'),
  297. 'web/static/src/scss/pre_variables.scss',
  298. 'web/static/lib/bootstrap/scss/_variables.scss',
  299. 'web/static/lib/luxon/luxon.js',
  300. ('include', 'web._assets_bootstrap'),
  301. 'web/static/src/legacy/scss/tempusdominus_overridden.scss',
  302. 'web/static/lib/tempusdominus/tempusdominus.scss',
  303. 'web/static/lib/jquery.ui/jquery-ui.css',
  304. 'web/static/src/libs/fontawesome/css/font-awesome.css',
  305. 'web/static/lib/odoo_ui_icons/*',
  306. 'web/static/lib/select2/select2.css',
  307. 'web/static/lib/select2-bootstrap-css/select2-bootstrap.css',
  308. 'web/static/lib/daterangepicker/daterangepicker.css',
  309. 'web/static/src/webclient/navbar/navbar.scss',
  310. 'web/static/src/legacy/scss/ui.scss',
  311. 'web/static/src/legacy/scss/mimetypes.scss',
  312. 'web/static/src/legacy/scss/modal.scss',
  313. 'web/static/src/legacy/scss/animation.scss',
  314. 'web/static/src/legacy/scss/datepicker.scss',
  315. 'web/static/src/legacy/scss/daterangepicker.scss',
  316. 'web/static/src/legacy/scss/banner.scss',
  317. 'web/static/src/legacy/scss/colorpicker.scss',
  318. 'web/static/src/legacy/scss/popover.scss',
  319. 'web/static/src/legacy/scss/translation_dialog.scss',
  320. 'web/static/src/legacy/scss/keyboard.scss',
  321. 'web/static/src/legacy/scss/name_and_signature.scss',
  322. 'web/static/src/legacy/scss/web.zoomodoo.scss',
  323. 'web/static/src/legacy/scss/fontawesome_overridden.scss',
  324. 'web/static/src/legacy/scss/base_frontend.scss',
  325. 'web/static/src/legacy/scss/lazyloader.scss',
  326. ('include', 'web.assets_frontend_minimal'),
  327. 'web/static/lib/underscore/underscore.js',
  328. 'web/static/lib/underscore.string/lib/underscore.string.js',
  329. 'web/static/lib/moment/moment.js',
  330. 'web/static/lib/owl/owl.js',
  331. 'web/static/lib/owl/odoo_module.js',
  332. 'web/static/src/owl2_compatibility/*.js',
  333. 'web/static/src/legacy/js/component_extension.js',
  334. 'web/static/src/legacy/legacy_component.js',
  335. 'web/static/lib/jquery/jquery.js',
  336. 'web/static/lib/jquery.ui/jquery-ui.js',
  337. 'web/static/lib/jquery/jquery.browser.js',
  338. 'web/static/lib/jquery.blockUI/jquery.blockUI.js',
  339. 'web/static/lib/jquery.hotkeys/jquery.hotkeys.js',
  340. 'web/static/lib/jquery.placeholder/jquery.placeholder.js',
  341. 'web/static/lib/jquery.form/jquery.form.js',
  342. 'web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js',
  343. 'web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js',
  344. 'web/static/lib/popper/popper.js',
  345. 'web/static/lib/bootstrap/js/dist/dom/data.js',
  346. 'web/static/lib/bootstrap/js/dist/dom/event-handler.js',
  347. 'web/static/lib/bootstrap/js/dist/dom/manipulator.js',
  348. 'web/static/lib/bootstrap/js/dist/dom/selector-engine.js',
  349. 'web/static/lib/bootstrap/js/dist/base-component.js',
  350. 'web/static/lib/bootstrap/js/dist/alert.js',
  351. 'web/static/lib/bootstrap/js/dist/button.js',
  352. 'web/static/lib/bootstrap/js/dist/carousel.js',
  353. 'web/static/lib/bootstrap/js/dist/collapse.js',
  354. 'web/static/lib/bootstrap/js/dist/dropdown.js',
  355. 'web/static/lib/bootstrap/js/dist/modal.js',
  356. 'web/static/lib/bootstrap/js/dist/offcanvas.js',
  357. 'web/static/lib/bootstrap/js/dist/tooltip.js',
  358. 'web/static/lib/bootstrap/js/dist/popover.js',
  359. 'web/static/lib/bootstrap/js/dist/scrollspy.js',
  360. 'web/static/lib/bootstrap/js/dist/tab.js',
  361. 'web/static/lib/bootstrap/js/dist/toast.js',
  362. 'web/static/lib/tempusdominus/tempusdominus.js',
  363. 'web/static/lib/select2/select2.js',
  364. 'web/static/lib/clipboard/clipboard.js',
  365. 'web/static/lib/jSignature/jSignatureCustom.js',
  366. 'web/static/lib/qweb/qweb2.js',
  367. 'web/static/src/legacy/js/assets.js',
  368. 'web/static/src/legacy/js/libs/autocomplete.js',
  369. 'web/static/src/legacy/js/libs/bootstrap.js',
  370. 'web/static/src/legacy/js/libs/content-disposition.js',
  371. 'web/static/src/legacy/js/libs/download.js',
  372. 'web/static/src/legacy/js/libs/jquery.js',
  373. 'web/static/src/legacy/js/libs/moment.js',
  374. 'web/static/src/legacy/js/libs/underscore.js',
  375. 'web/static/src/legacy/js/libs/pdfjs.js',
  376. 'web/static/src/legacy/js/libs/zoomodoo.js',
  377. 'web/static/src/legacy/js/libs/jSignatureCustom.js',
  378. 'web/static/src/legacy/js/core/abstract_service.js',
  379. 'web/static/src/legacy/js/core/abstract_storage_service.js',
  380. 'web/static/src/legacy/js/core/ajax.js',
  381. 'web/static/src/legacy/js/core/browser_detection.js',
  382. 'web/static/src/legacy/js/core/bus.js',
  383. 'web/static/src/legacy/js/core/class.js',
  384. 'web/static/src/legacy/js/core/collections.js',
  385. 'web/static/src/legacy/js/core/concurrency.js',
  386. 'web/static/src/legacy/js/core/dialog.js',
  387. 'web/static/src/legacy/xml/dialog.xml',
  388. 'web/static/src/legacy/js/core/owl_dialog.js',
  389. 'web/static/src/legacy/js/core/popover.js',
  390. 'web/static/src/legacy/js/core/dom.js',
  391. 'web/static/src/legacy/js/core/local_storage.js',
  392. 'web/static/src/legacy/js/core/menu.js',
  393. 'web/static/src/legacy/js/core/mixins.js',
  394. 'web/static/src/legacy/js/core/qweb.js',
  395. 'web/static/src/legacy/js/core/ram_storage.js',
  396. 'web/static/src/legacy/js/core/registry.js',
  397. 'web/static/src/legacy/js/core/rpc.js',
  398. 'web/static/src/legacy/js/core/service_mixins.js',
  399. 'web/static/src/legacy/js/core/session.js',
  400. 'web/static/src/legacy/js/core/session_storage.js',
  401. 'web/static/src/legacy/js/core/time.js',
  402. 'web/static/src/legacy/js/core/translation.js',
  403. 'web/static/src/legacy/js/core/utils.js',
  404. 'web/static/src/legacy/js/core/widget.js',
  405. 'web/static/src/legacy/js/services/ajax_service.js',
  406. 'web/static/src/legacy/js/services/config.js',
  407. 'web/static/src/legacy/js/services/core.js',
  408. 'web/static/src/legacy/js/services/local_storage_service.js',
  409. 'web/static/src/legacy/js/services/session_storage_service.js',
  410. 'web/static/src/legacy/js/common_env.js',
  411. 'web/static/src/legacy/js/widgets/name_and_signature.js',
  412. 'web/static/src/legacy/xml/name_and_signature.xml',
  413. 'web/static/src/legacy/js/core/smooth_scroll_on_drag.js',
  414. 'web/static/src/legacy/js/widgets/colorpicker.js',
  415. 'web/static/src/legacy/xml/colorpicker.xml',
  416. 'web/static/src/legacy/js/widgets/translation_dialog.js',
  417. 'web/static/src/legacy/xml/translation_dialog.xml',
  418. 'web/static/src/env.js',
  419. 'web/static/src/core/utils/transitions.scss', # included early because used by other files
  420. 'web/static/src/core/**/*',
  421. ('remove', 'web/static/src/core/commands/**/*'),
  422. ('remove', 'web/static/src/core/debug/debug_menu.js'),
  423. 'web/static/src/public/error_notifications.js',
  424. 'web/static/src/legacy/utils.js',
  425. 'web/static/src/legacy/js/core/misc.js',
  426. 'web/static/src/legacy/js/owl_compatibility.js',
  427. 'web/static/src/legacy/js/services/session.js',
  428. 'web/static/src/legacy/js/public/public_env.js',
  429. 'web/static/src/legacy/js/public/public_root.js',
  430. 'web/static/src/legacy/js/public/public_root_instance.js',
  431. 'web/static/src/legacy/js/public/public_widget.js',
  432. 'web/static/src/legacy/legacy_promise_error_handler.js',
  433. 'web/static/src/legacy/legacy_rpc_error_handler.js',
  434. 'web/static/src/legacy/js/fields/field_utils.js',
  435. ('include', 'web.frontend_legacy'),
  436. ],
  437. 'web.assets_frontend_lazy': [
  438. ('include', 'web.assets_frontend'),
  439. # Remove assets_frontend_minimal
  440. ('remove', 'web/static/src/legacy/js/promise_extension.js'),
  441. ('remove', 'web/static/src/boot.js'),
  442. ('remove', 'web/static/src/session.js'),
  443. ('remove', 'web/static/src/legacy/js/core/cookie_utils.js'),
  444. ('remove', 'web/static/src/legacy/js/core/menu.js'),
  445. ('remove', 'web/static/src/legacy/js/public/lazyloader.js'),
  446. ],
  447. 'web.assets_backend_prod_only': [
  448. 'web/static/src/main.js',
  449. 'web/static/src/start.js',
  450. 'web/static/src/legacy/legacy_setup.js',
  451. ],
  452. # Optional Bundle for PDFJS lib
  453. # Since PDFJS is quite huge (80000≈ lines), please only load it when it is necessary.
  454. # For now, it is only use to display the PDF slide Viewer during an embed.
  455. # Bundlized, the size is reduced to 5300≈ lines.
  456. 'web.pdf_js_lib': [
  457. 'web/static/lib/pdfjs/build/pdf.js',
  458. 'web/static/lib/pdfjs/build/pdf.worker.js',
  459. ],
  460. 'web.report_assets_common': [
  461. ('include', 'web._assets_helpers'),
  462. 'web/static/src/webclient/actions/reports/bootstrap_overridden_report.scss',
  463. 'web/static/src/scss/pre_variables.scss',
  464. 'web/static/lib/bootstrap/scss/_variables.scss',
  465. ('include', 'web._assets_bootstrap'),
  466. 'base/static/src/css/description.css',
  467. 'web/static/src/libs/fontawesome/css/font-awesome.css',
  468. 'web/static/lib/odoo_ui_icons/*',
  469. 'web/static/fonts/fonts.scss',
  470. 'web/static/src/webclient/actions/reports/report.scss',
  471. 'web/static/src/webclient/actions/reports/layout_assets/layout_standard.scss',
  472. 'web/static/src/webclient/actions/reports/layout_assets/layout_background.scss',
  473. 'web/static/src/webclient/actions/reports/layout_assets/layout_boxed.scss',
  474. 'web/static/src/webclient/actions/reports/layout_assets/layout_clean.scss',
  475. 'web/static/asset_styles_company_report.scss',
  476. 'web/static/src/legacy/js/services/session.js',
  477. 'web/static/src/legacy/js/public/public_root.js',
  478. 'web/static/src/legacy/js/public/public_root_instance.js',
  479. 'web/static/src/legacy/js/public/public_widget.js',
  480. 'web/static/src/legacy/js/report/report.js',
  481. ],
  482. 'web.report_assets_pdf': [
  483. 'web/static/src/webclient/actions/reports/reset.min.css',
  484. ],
  485. # ---------------------------------------------------------------------
  486. # COLOR SCHEME BUNDLES
  487. # ---------------------------------------------------------------------
  488. "web.dark_mode_assets_common": [
  489. ('include', 'web.assets_common'),
  490. ],
  491. "web.dark_mode_assets_backend": [
  492. ('include', 'web.assets_backend'),
  493. 'web/static/src/**/*.dark.scss',
  494. ],
  495. "web.dark_mode_variables": [
  496. ('before', 'base/static/src/scss/onboarding.variables.scss', 'base/static/src/scss/onboarding.variables.dark.scss'),
  497. ],
  498. # ---------------------------------------------------------------------
  499. # SUB BUNDLES
  500. # ---------------------------------------------------------------------
  501. # These bundles can be used by main bundles but are not supposed to be
  502. # called directly from XML templates.
  503. #
  504. # Their naming conventions are similar to those of the main bundles,
  505. # with the addition of a prefixed underscore to reflect the "private"
  506. # aspect.
  507. #
  508. # Examples:
  509. # > web._assets_helpers = define assets needed in most main bundles
  510. 'web._assets_primary_variables': [
  511. 'web/static/src/scss/primary_variables.scss',
  512. 'web/static/src/**/**/*.variables.scss',
  513. 'base/static/src/scss/onboarding.variables.scss',
  514. ],
  515. 'web._assets_secondary_variables': [
  516. 'web/static/src/scss/secondary_variables.scss',
  517. ],
  518. 'web._assets_helpers': [
  519. 'web/static/lib/bootstrap/scss/_functions.scss',
  520. 'web/static/lib/bootstrap/scss/_mixins.scss',
  521. 'web/static/src/scss/mixins_forwardport.scss',
  522. 'web/static/src/scss/bs_mixins_overrides.scss',
  523. 'web/static/src/legacy/scss/utils.scss',
  524. ('include', 'web._assets_primary_variables'),
  525. ('include', 'web._assets_secondary_variables'),
  526. ],
  527. 'web._assets_bootstrap': [
  528. 'web/static/src/scss/import_bootstrap.scss',
  529. 'web/static/src/scss/helpers_backport.scss',
  530. 'web/static/src/scss/utilities_custom.scss',
  531. 'web/static/lib/bootstrap/scss/utilities/_api.scss',
  532. 'web/static/src/scss/bootstrap_review.scss',
  533. ],
  534. 'web._assets_backend_helpers': [
  535. 'web/static/src/scss/bootstrap_overridden.scss',
  536. 'web/static/src/scss/bs_mixins_overrides_backend.scss',
  537. ],
  538. 'web._assets_frontend_helpers': [
  539. 'web/static/src/scss/bootstrap_overridden_frontend.scss',
  540. ],
  541. # Used during the transition of the web architecture
  542. 'web.frontend_legacy': [
  543. 'web/static/src/legacy/frontend/**/*',
  544. ],
  545. # ---------------------------------------------------------------------
  546. # TESTS BUNDLES
  547. # ---------------------------------------------------------------------
  548. 'web.assets_tests': [
  549. # No tours are defined in web, but the bundle "assets_tests" is
  550. # first called in web.
  551. 'web/static/tests/legacy/helpers/test_utils_file.js'
  552. ],
  553. # remove this bundle alongside the owl2 compatibility layer
  554. 'web.tests_assets_common': [
  555. ('include', 'web.assets_common'),
  556. ('after', 'web/static/src/owl2_compatibility/app.js', 'web/static/tests/owl2_compatibility_app.js'),
  557. ],
  558. 'web.tests_assets': [
  559. 'web/static/lib/qunit/qunit-2.9.1.css',
  560. 'web/static/lib/qunit/qunit-2.9.1.js',
  561. 'web/static/tests/legacy/helpers/**/*',
  562. ('remove', 'web/static/tests/legacy/helpers/test_utils_tests.js'),
  563. 'web/static/tests/legacy/legacy_setup.js',
  564. 'web/static/lib/fullcalendar/core/main.css',
  565. 'web/static/lib/fullcalendar/daygrid/main.css',
  566. 'web/static/lib/fullcalendar/timegrid/main.css',
  567. 'web/static/lib/fullcalendar/list/main.css',
  568. 'web/static/lib/fullcalendar/core/main.js',
  569. 'web/static/lib/fullcalendar/moment/main.js',
  570. 'web/static/lib/fullcalendar/interaction/main.js',
  571. 'web/static/lib/fullcalendar/daygrid/main.js',
  572. 'web/static/lib/fullcalendar/timegrid/main.js',
  573. 'web/static/lib/fullcalendar/list/main.js',
  574. 'web/static/lib/fullcalendar/luxon/main.js',
  575. 'web/static/lib/zxing-library/zxing-library.js',
  576. 'web/static/lib/ace/ace.js',
  577. 'web/static/lib/ace/javascript_highlight_rules.js',
  578. 'web/static/lib/ace/mode-python.js',
  579. 'web/static/lib/ace/mode-xml.js',
  580. 'web/static/lib/ace/mode-js.js',
  581. 'web/static/lib/ace/mode-qweb.js',
  582. 'web/static/lib/nearest/jquery.nearest.js',
  583. 'web/static/lib/daterangepicker/daterangepicker.js',
  584. 'web/static/src/legacy/js/libs/daterangepicker.js',
  585. 'web/static/lib/stacktracejs/stacktrace.js',
  586. 'web/static/lib/Chart/Chart.js',
  587. '/web/static/lib/daterangepicker/daterangepicker.js',
  588. # 'web/static/tests/legacy/main_tests.js',
  589. 'web/static/tests/helpers/**/*.js',
  590. 'web/static/tests/utils.js',
  591. 'web/static/tests/views/helpers.js',
  592. 'web/static/tests/search/helpers.js',
  593. 'web/static/tests/views/calendar/helpers.js',
  594. 'web/static/tests/webclient/**/helpers.js',
  595. 'web/static/tests/qunit.js',
  596. 'web/static/tests/main.js',
  597. 'web/static/tests/mock_server_tests.js',
  598. 'web/static/tests/setup.js',
  599. # These 2 lines below are taken from web.assets_frontend
  600. # They're required for the web.frontend_legacy to work properly
  601. # It is expected to add other lines coming from the web.assets_frontend
  602. # if we need to add more and more legacy stuff that would require other scss or js.
  603. ('include', 'web._assets_helpers'),
  604. 'web/static/src/scss/pre_variables.scss',
  605. 'web/static/lib/bootstrap/scss/_variables.scss',
  606. ('include', 'web.frontend_legacy'),
  607. ("include", "web.assets_backend_legacy_lazy"),
  608. ],
  609. 'web.qunit_suite_tests': [
  610. 'web/static/tests/env_tests.js',
  611. 'web/static/tests/core/**/*.js',
  612. 'web/static/tests/search/**/*.js',
  613. ('remove', 'web/static/tests/search/helpers.js'),
  614. 'web/static/tests/views/**/*.js',
  615. ('remove', 'web/static/tests/views/helpers.js'),
  616. ('remove', 'web/static/tests/views/calendar/helpers.js'),
  617. 'web/static/tests/webclient/**/*.js',
  618. ('remove', 'web/static/tests/webclient/**/helpers.js'),
  619. 'web/static/tests/legacy/**/*.js',
  620. ('remove', 'web/static/tests/legacy/**/*_mobile_tests.js'),
  621. ('remove', 'web/static/tests/legacy/**/*_benchmarks.js'),
  622. ('remove', 'web/static/tests/legacy/helpers/**/*.js'),
  623. ('remove', 'web/static/tests/legacy/legacy_setup.js'),
  624. ('include', 'web.frontend_legacy_tests'),
  625. ],
  626. 'web.qunit_mobile_suite_tests': [
  627. 'web/static/tests/mobile/**/*.js',
  628. 'web/static/tests/legacy/fields/basic_fields_mobile_tests.js',
  629. 'web/static/tests/legacy/fields/relational_fields_mobile_tests.js',
  630. 'web/static/tests/legacy/components/dropdown_menu_mobile_tests.js',
  631. ],
  632. # Used during the transition of the web architecture
  633. 'web.frontend_legacy_tests': [
  634. 'web/static/tests/legacy/frontend/*.js',
  635. ],
  636. },
  637. 'bootstrap': True, # load translations for login screen,
  638. 'license': 'LGPL-3',
  639. }