pos_assets_index.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- This contains the tour assets. They are included during testing. -->
  4. <template id="point_of_sale.index" name="POS Index">&lt;!DOCTYPE html&gt;
  5. <html>
  6. <head>
  7. <title>Odoo POS</title>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  9. <meta http-equiv="content-type" content="text/html, charset=utf-8" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
  11. <meta name="apple-mobile-web-app-capable" content="yes"/>
  12. <meta name="mobile-web-app-capable" content="yes"/>
  13. <link rel="shortcut icon" sizes="196x196" href="/point_of_sale/static/src/img/touch-icon-196.png"/>
  14. <link rel="shortcut icon" sizes="128x128" href="/point_of_sale/static/src/img/touch-icon-128.png"/>
  15. <link rel="apple-touch-icon" href="/point_of_sale/static/src/img/touch-icon-iphone.png"/>
  16. <link rel="apple-touch-icon" sizes="76x76" href="/point_of_sale/static/src/img/touch-icon-ipad.png"/>
  17. <link rel="apple-touch-icon" sizes="120x120" href="/point_of_sale/static/src/img/touch-icon-iphone-retina.png"/>
  18. <link rel="apple-touch-icon" sizes="152x152" href="/point_of_sale/static/src/img/touch-icon-ipad-retina.png"/>
  19. <style> body { background: #222; } </style>
  20. <link rel="shortcut icon" href="/point_of_sale/static/src/img/favicon.ico" type="image/x-icon"/>
  21. <script type="text/javascript">
  22. var odoo = <t t-out="json.dumps({
  23. 'csrf_token': request.csrf_token(None),
  24. '__session_info__': session_info,
  25. 'login_number': login_number,
  26. 'pos_session_id': pos_session_id,
  27. 'debug': debug,
  28. })"/>;
  29. // Prevent the menu_service to load anything. In an ideal world, POS assets would only contain
  30. // what is genuinely necessary, and not the whole backend.
  31. odoo.loadMenusPromise = Promise.resolve();
  32. </script>
  33. <t t-call="point_of_sale.assets_common"/>
  34. <t t-call="web.conditional_assets_tests"/>
  35. <t t-call-assets="point_of_sale.assets_backend_prod_only" />
  36. </head>
  37. <body>
  38. </body>
  39. </html>
  40. </template>
  41. </odoo>