| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<!-- This contains the tour assets. They are included during testing. --> |
| 5 |
<template id="point_of_sale.index" name="POS Index"><!DOCTYPE html> |
| 6 |
<html> |
| 7 |
<head> |
| 8 |
<title>Odoo POS</title> |
| 9 |
|
| 10 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
| 11 |
<meta http-equiv="content-type" content="text/html, charset=utf-8" /> |
| 12 |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, interactive-widget=resizes-content"/> |
| 13 |
<link rel="icon" href="/point_of_sale/static/src/img/favicon.ico" type="image/x-icon"/> |
| 14 |
|
| 15 |
<style> body { background: #222; } </style> |
| 16 |
|
| 17 |
<script type="text/javascript"> |
| 18 |
var odoo = <t t-out="json.dumps({ |
| 19 |
'csrf_token': request.csrf_token(None), |
| 20 |
'__session_info__': session_info, |
| 21 |
'from_backend': from_backend, |
| 22 |
'pos_session_id': pos_session_id, |
| 23 |
'last_data_change': last_data_change, |
| 24 |
'pos_config_id': pos_config_id, |
| 25 |
'access_token': access_token, |
| 26 |
'urls_to_cache': urls_to_cache, |
| 27 |
'use_pos_fake_tours': use_pos_fake_tours, |
| 28 |
'use_lna': use_lna, |
| 29 |
'debug': debug, |
| 30 |
})"/>; |
| 31 |
// Prevent the menu_service to load anything. In an ideal world, POS assets would only contain |
| 32 |
// what is genuinely necessary, and not the whole backend. |
| 33 |
odoo.loadMenusPromise = Promise.resolve(); |
| 34 |
</script> |
| 35 |
|
| 36 |
<t t-call="web.conditional_assets_tests"> |
| 37 |
<t t-set="ignore_missing_deps" t-value="True"/> |
| 38 |
</t> |
| 39 |
<t t-if="request.cookies.get('pos_color_scheme') == 'dark'"> |
| 40 |
<t t-call-assets="point_of_sale.assets_prod_dark"/> |
| 41 |
</t> |
| 42 |
<t t-else=""> |
| 43 |
<t t-call-assets="point_of_sale.assets_prod"/> |
| 44 |
</t> |
| 45 |
<t t-if="use_pos_fake_tours"> |
| 46 |
<t t-call-assets="point_of_sale.assets_debug" /> |
| 47 |
</t> |
| 48 |
</head> |
| 49 |
<body class="pos"> |
| 50 |
</body> |
| 51 |
</html> |
| 52 |
</template> |
| 53 |
|
| 54 |
</odoo> |