You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
494 lines
54 KiB
494 lines
54 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
<!--Template for Kitchen order stages -->
|
|
<t t-name="KitchenCustomDashBoard">
|
|
<header>
|
|
<div class="kitchen">
|
|
<div class="body_wrapper">
|
|
<div class="container">
|
|
<div class="top_bar">
|
|
<ul>
|
|
<li>
|
|
<a href="#">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 10 12"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M9.18821 3.16036L6.73523 0.648239C6.43604 0.349181 6.01726 0.169742 5.53864 0.169742H2.00871C1.11127 0.109927 0.333496 0.887493 0.333496 1.78468V10.1584C0.333496 11.0556 1.05145 11.8332 2.00871 11.8332H7.99161C8.88907 11.8332 9.66683 11.1154 9.66683 10.1584V4.2968C9.66683 3.87811 9.48734 3.45943 9.18821 3.16036ZM3.20529 4.89494H5.00016C5.2395 4.89494 5.47879 5.07437 5.47879 5.37345C5.47879 5.67246 5.2993 5.8519 5.00016 5.8519H3.20529C2.96597 5.8519 2.72666 5.67246 2.72666 5.37345C2.72666 5.07437 2.96597 4.89494 3.20529 4.89494ZM6.79502 8.24444H3.20529C2.96597 8.24444 2.72666 8.06501 2.72666 7.76593C2.72666 7.46686 2.90615 7.28742 3.20529 7.28742H6.79502C7.03436 7.28742 7.27365 7.46686 7.27365 7.76593C7.27365 8.06501 7.03436 8.24444 6.79502 8.24444Z"
|
|
fill="#545454"/>
|
|
</svg>
|
|
</div>
|
|
<span class="draft draft_stage">
|
|
Cooking
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 15 15"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<g clip-path="url(#clip0_50_184)">
|
|
<path d="M2.10938 4.21875C2.36826 4.21875 2.57812 4.00888 2.57812 3.75C2.57812 3.49112 2.36826 3.28125 2.10938 3.28125C1.85049 3.28125 1.64062 3.49112 1.64062 3.75C1.64062 4.00888 1.85049 4.21875 2.10938 4.21875Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M3.75 2.57812C4.00888 2.57812 4.21875 2.36826 4.21875 2.10938C4.21875 1.85049 4.00888 1.64062 3.75 1.64062C3.49112 1.64062 3.28125 1.85049 3.28125 2.10938C3.28125 2.36826 3.49112 2.57812 3.75 2.57812Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M14.9259 4.48296L14.871 4.37318C14.79 4.21054 14.6491 4.08563 14.4779 4.02473C14.3067 3.96383 14.1186 3.97169 13.9531 4.04664L10.4498 5.64625L10.4527 5.65287C10.3433 5.682 10.2412 5.73345 10.1527 5.80397C10.0643 5.8745 9.99132 5.96258 9.93854 6.06266C9.88576 6.16275 9.85427 6.27268 9.84605 6.38553C9.83782 6.49839 9.85305 6.61172 9.89077 6.7184L9.82183 6.76437C8.90217 6.3044 6.67174 6.67522 4.5878 7.40011C4.46536 7.44269 4.34329 7.48657 4.22159 7.53177C3.99128 6.67856 4.58727 6.05755 4.6197 6.02465L4.28765 5.69383C4.06054 5.93943 3.89066 6.2323 3.79022 6.55138C3.67163 6.92513 3.66835 7.32593 3.78082 7.70157C3.40582 7.85131 3.04546 8.0096 2.70448 8.1741C2.51537 7.47209 2.49858 6.74775 2.52433 6.22434C2.52964 6.11855 2.51372 6.01277 2.47751 5.91324C2.4413 5.8137 2.38554 5.72241 2.31351 5.64476C2.24149 5.5671 2.15464 5.50465 2.0581 5.46107C1.96157 5.4175 1.85728 5.39368 1.7514 5.39103C1.64551 5.38838 1.54017 5.40695 1.44157 5.44564C1.34297 5.48433 1.25311 5.54236 1.17729 5.61631C1.10146 5.69026 1.0412 5.77864 1.00006 5.87624C0.958919 5.97384 0.937726 6.07869 0.93773 6.18461V7.84223C0.93766 7.8758 0.924283 7.90797 0.900531 7.93169C0.87678 7.95542 0.844591 7.96876 0.811021 7.96879C0.73253 7.96876 0.65481 7.98426 0.582331 8.01438C0.509852 8.04451 0.444046 8.08867 0.388701 8.14432C0.333355 8.19998 0.289563 8.26603 0.259843 8.33868C0.230124 8.41132 0.215065 8.48913 0.215532 8.56762C0.225923 8.9479 0.293689 9.32443 0.416538 9.68447C0.0579151 10.0684 -0.0703466 10.4164 0.0353859 10.7205C0.429107 11.8525 1.33374 12.7277 2.5826 13.185C3.19648 13.4067 3.84457 13.5188 4.49727 13.516C5.21 13.5136 5.91728 13.3918 6.58977 13.1557C7.94156 12.6855 9.06398 11.8105 9.75023 10.692C10.4458 9.55844 10.612 8.31074 10.2182 7.17877C10.2106 7.15721 10.2018 7.13609 10.1919 7.11549C10.2907 7.18544 10.4038 7.23256 10.523 7.25347C10.6423 7.27437 10.7646 7.26853 10.8814 7.23637L10.8841 7.24205L10.9191 7.225C10.9902 7.20174 11.0577 7.16885 11.1199 7.12724L14.6016 5.43121C14.6856 5.39082 14.7608 5.3341 14.8227 5.26437C14.8847 5.19464 14.9321 5.11329 14.9623 5.02504C14.9925 4.9368 15.0048 4.84343 14.9986 4.75037C14.9923 4.65732 14.9676 4.56644 14.9259 4.48302L14.9259 4.48296ZM0.478149 10.5665C0.445718 10.4733 0.49939 10.3311 0.624399 10.1643C0.762759 10.4272 0.95183 10.66 1.18069 10.8493C1.07764 10.8397 0.975373 10.8231 0.874595 10.7995C0.652612 10.7457 0.51187 10.663 0.478237 10.5666V10.5665L0.478149 10.5665ZM8.87586 7.99604C8.82647 8.41615 8.7442 8.5027 8.74075 8.50618L8.74529 8.51072C8.55125 8.64285 8.33844 8.77463 8.10955 8.90468C8.26249 8.60194 8.36352 8.27568 8.40843 7.93949C8.41616 7.88273 8.44419 7.83068 8.48732 7.79298C8.53046 7.75528 8.58578 7.73448 8.64307 7.73441C8.67616 7.7344 8.70887 7.7414 8.73906 7.75494C8.76925 7.76848 8.79623 7.78826 8.81822 7.81298C8.84022 7.83769 8.85673 7.86679 8.86668 7.89834C8.87662 7.9299 8.87977 7.9632 8.87592 7.99606L8.87586 7.99604ZM4.27332 8.58757L4.63344 8.28748C4.54833 8.18609 4.47189 8.07773 4.40493 7.96355C4.51675 7.92227 4.62934 7.88189 4.74184 7.84272C6.02358 7.39691 7.27309 7.11408 8.25987 7.04641C8.71904 7.01494 9.10608 7.03328 9.37901 7.09952C9.60111 7.15337 9.74188 7.23616 9.77542 7.33264C9.80897 7.42911 9.74994 7.58137 9.60925 7.76143C9.52783 7.86307 9.43839 7.95803 9.3418 8.0454C9.36159 7.86131 9.30807 7.67683 9.19284 7.53191C9.07761 7.38699 8.90994 7.29328 8.72612 7.27108C8.54231 7.24887 8.35715 7.29996 8.21072 7.41328C8.0643 7.5266 7.9684 7.69303 7.94378 7.87653C7.82472 8.75283 7.30669 9.26351 7.1622 9.39065C6.62355 9.64005 6.07271 9.86225 5.51176 10.0564C5.27266 10.1396 5.0352 10.2169 4.79938 10.2885C3.87339 10.1098 3.21867 9.55021 2.85205 8.62302C3.20162 8.45251 3.57392 8.28857 3.9619 8.13376C4.05061 8.29486 4.1549 8.44687 4.2733 8.5876L4.27332 8.58757ZM0.720933 8.47498C0.732705 8.46306 0.746736 8.45361 0.762205 8.44719C0.777674 8.44076 0.794269 8.43748 0.811021 8.43754C0.968891 8.43736 1.12025 8.37457 1.23188 8.26294C1.34351 8.1513 1.4063 7.99995 1.40648 7.84208V6.18461C1.40653 6.09838 1.44081 6.0157 1.50179 5.95472C1.56276 5.89375 1.64544 5.85947 1.73167 5.85941C1.77576 5.85944 1.81938 5.86842 1.85989 5.88583C1.90039 5.90323 1.93693 5.92869 1.96729 5.96065C1.99766 5.99261 2.0212 6.03042 2.0365 6.07176C2.0518 6.11311 2.05853 6.15713 2.05628 6.20116C2.02277 6.88211 2.0576 7.88389 2.41391 8.78931C2.61914 9.31079 2.90941 9.73993 3.27662 10.0647C3.48573 10.2491 3.7211 10.4014 3.97499 10.5167C3.45165 10.6503 2.92029 10.7503 2.38417 10.816C2.30088 10.8257 2.14819 10.7845 2.14819 10.7845C1.62471 10.6972 1.22715 10.3665 0.966528 9.80151C0.792535 9.41164 0.696665 8.99144 0.684341 8.56469C0.684177 8.54805 0.687329 8.53156 0.693611 8.51615C0.699894 8.50075 0.709182 8.48675 0.720933 8.47498ZM10.6222 6.79416L10.6771 6.75757C10.703 6.74064 10.7254 6.71874 10.7428 6.69314C10.7602 6.66753 10.7724 6.63872 10.7786 6.60838C10.7848 6.57804 10.785 6.54676 10.779 6.51636C10.7731 6.48596 10.7612 6.45704 10.744 6.43127C10.7268 6.4055 10.7047 6.38339 10.6789 6.36622C10.6532 6.34905 10.6242 6.33716 10.5938 6.33123C10.5634 6.32531 10.5322 6.32547 10.5018 6.33171C10.4715 6.33794 10.4427 6.35013 10.4171 6.36757L10.3131 6.43686C10.3145 6.37752 10.3309 6.31949 10.3607 6.26818C10.3905 6.21688 10.4329 6.17397 10.4838 6.14346C10.5347 6.11295 10.5925 6.09583 10.6519 6.09371C10.7112 6.09158 10.7701 6.10452 10.823 6.1313C10.876 6.15809 10.9213 6.19786 10.9547 6.2469C10.9882 6.29594 11.0087 6.35265 11.0143 6.41174C11.0199 6.47083 11.0104 6.53038 10.9867 6.58482C10.9631 6.63926 10.9261 6.68683 10.8791 6.72309L10.7502 6.78593C10.7085 6.79693 10.665 6.79974 10.6223 6.79419L10.6222 6.79416Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M3.04688 4.6875H3.51562V5.15625H3.04688V4.6875Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M2.8125 6.79688H3.28125V7.26562H2.8125V6.79688Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M4.21875 8.90625H4.6875V9.375H4.21875V8.90625Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M0.46875 4.45312H0.9375V4.92188H0.46875V4.45312Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M2.44813 10.7418L2.70814 10.3518C2.13533 9.96989 2.11005 9.61807 2.10938 9.60327C2.10958 9.60723 2.10938 9.60928 2.10938 9.60928H1.64062C1.64062 9.6701 1.66327 10.2187 2.44813 10.7418Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M4.45312 4.45309C4.45312 4.21408 4.55938 3.92727 4.76042 3.62366C4.85724 3.4772 4.96679 3.33956 5.08781 3.21236L4.92188 3.04684L4.75614 2.8811C4.72465 2.91263 3.98438 3.66207 3.98438 4.45309H4.45312Z"
|
|
fill="#1D89AB"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath
|
|
id="clip0_50_184">
|
|
<rect width="15"
|
|
height="15"
|
|
fill="white"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
</div>
|
|
<span class="cooking waiting_stage">
|
|
Ready
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 12 12"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<g clip-path="url(#clip0_50_195)">
|
|
<path d="M8.60344 4.39644C8.40844 4.20119 8.09144 4.20119 7.89644 4.39644L5.74994 6.54269L4.85344 5.64644C4.65844 5.45119 4.34144 5.45119 4.14644 5.64644C3.95119 5.84169 3.95119 6.15819 4.14644 6.35344L5.39644 7.60344C5.49394 7.70119 5.62194 7.74994 5.74994 7.74994C5.87794 7.74994 6.00594 7.70119 6.10344 7.60344L8.60344 5.10344C8.79869 4.90819 8.79869 4.59169 8.60344 4.39644Z"
|
|
fill="#008E06"/>
|
|
<path d="M11.5 5.5C11.224 5.5 11 5.724 11 6C11 8.757 8.757 11 6 11C3.243 11 1 8.757 1 6C1 3.243 3.243 1 6 1C7.34225 1 8.60225 1.5245 9.54825 2.477C9.7425 2.67325 10.0592 2.67425 10.2552 2.4795C10.4513 2.285 10.4522 1.9685 10.2577 1.7725C9.12275 0.6295 7.6105 0 6 0C2.6915 0 0 2.6915 0 6C0 9.3085 2.6915 12 6 12C9.3085 12 12 9.3085 12 6C12 5.724 11.776 5.5 11.5 5.5Z"
|
|
fill="#008E06"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath
|
|
id="clip0_50_195">
|
|
<rect width="12"
|
|
height="12"
|
|
fill="white"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
</div>
|
|
<span class="completed ready_stage">
|
|
Completed
|
|
</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="container o_pj_dashboard"/>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</t>
|
|
<!--Template for Kitchen Orders in the kitchen screen -->
|
|
<t t-name="KitchenOrder">
|
|
<section class="screen_info custom_padding_top">
|
|
<div class="wrapper">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<t t-if="widget.total_room">
|
|
<t t-foreach="widget.total_room"
|
|
t-as="order">
|
|
<t t-if="widget.shop_id==order.config_id[0]">
|
|
<t t-if="widget.stages=='ready'">
|
|
<t t-if="order.order_status=='ready'">
|
|
<div class="col-lg-4 col-md-6 col-12">
|
|
<div class="card"
|
|
style="">
|
|
<div class="card-header bg_green">
|
|
<div class="left">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 12 12"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<g clip-path="url(#clip0_50_195)">
|
|
<path d="M8.60344 4.39644C8.40844 4.20119 8.09144 4.20119 7.89644 4.39644L5.74994 6.54269L4.85344 5.64644C4.65844 5.45119 4.34144 5.45119 4.14644 5.64644C3.95119 5.84169 3.95119 6.15819 4.14644 6.35344L5.39644 7.60344C5.49394 7.70119 5.62194 7.74994 5.74994 7.74994C5.87794 7.74994 6.00594 7.70119 6.10344 7.60344L8.60344 5.10344C8.79869 4.90819 8.79869 4.59169 8.60344 4.39644Z"
|
|
fill="#008E06"/>
|
|
<path d="M11.5 5.5C11.224 5.5 11 5.724 11 6C11 8.757 8.757 11 6 11C3.243 11 1 8.757 1 6C1 3.243 3.243 1 6 1C7.34225 1 8.60225 1.5245 9.54825 2.477C9.7425 2.67325 10.0592 2.67425 10.2552 2.4795C10.4513 2.285 10.4522 1.9685 10.2577 1.7725C9.12275 0.6295 7.6105 0 6 0C2.6915 0 0 2.6915 0 6C0 9.3085 2.6915 12 6 12C9.3085 12 12 9.3085 12 6C12 5.724 11.776 5.5 11.5 5.5Z"
|
|
fill="#008E06"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath
|
|
id="clip0_50_195">
|
|
<rect fill="white"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
</div>
|
|
<div class="status">
|
|
<h4 class="c_white">
|
|
Completed
|
|
</h4>
|
|
<a class="btn btn-transparent mt c_white">
|
|
<t t-esc="order.name"/>
|
|
</a>
|
|
<t t-esc="order.order_time"/>
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<span>
|
|
<t t-esc="order.user_id[1]"/>
|
|
</span>
|
|
<img src="pos_kitchen_screen_odoo/static/src/assets/icons/Vector-white.svg"
|
|
alt=""/>
|
|
</div>
|
|
</div>
|
|
<t t-if="order.order_status=='ready'">
|
|
<t t-foreach="order.lines"
|
|
t-as="lines">
|
|
<t t-foreach="widget.lines"
|
|
t-as="line">
|
|
<t t-if="lines==line.id">
|
|
<ul class="list-group list-group-flush">
|
|
<button class="list-group-item">
|
|
<span>
|
|
<t t-esc="line.qty"/>
|
|
x
|
|
</span>
|
|
<t t-esc="line.full_product_name"/>
|
|
<br/>
|
|
<t t-if="line.note">
|
|
<i class="fa fa-tag"
|
|
role="img"
|
|
aria-label="Note"
|
|
title="Note"/>
|
|
<t t-esc="line.note"/>
|
|
</t>
|
|
</button>
|
|
</ul>
|
|
</t>
|
|
<t t-if="order.order_status=='waiting' and line.order_status!='ready'">
|
|
<div class="col-12 py-3">
|
|
<button type="button"
|
|
class="accept_order_line btn btn-primary"
|
|
t-attf-id="lines_id_{{line.id}}"
|
|
t-att-value="line.id">
|
|
Ready
|
|
</button>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
<t t-elif="widget.stages=='waiting'">
|
|
<t t-if="order.order_status=='waiting'">
|
|
<div class="col-lg-4 col-md-6 col-12">
|
|
<div class="card"
|
|
style="">
|
|
<div class="card-header bg_blue">
|
|
<div class="left">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 15 15"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<g clip-path="url(#clip0_50_184)">
|
|
<path d="M2.10938 4.21875C2.36826 4.21875 2.57812 4.00888 2.57812 3.75C2.57812 3.49112 2.36826 3.28125 2.10938 3.28125C1.85049 3.28125 1.64062 3.49112 1.64062 3.75C1.64062 4.00888 1.85049 4.21875 2.10938 4.21875Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M3.75 2.57812C4.00888 2.57812 4.21875 2.36826 4.21875 2.10938C4.21875 1.85049 4.00888 1.64062 3.75 1.64062C3.49112 1.64062 3.28125 1.85049 3.28125 2.10938C3.28125 2.36826 3.49112 2.57812 3.75 2.57812Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M14.9259 4.48296L14.871 4.37318C14.79 4.21054 14.6491 4.08563 14.4779 4.02473C14.3067 3.96383 14.1186 3.97169 13.9531 4.04664L10.4498 5.64625L10.4527 5.65287C10.3433 5.682 10.2412 5.73345 10.1527 5.80397C10.0643 5.8745 9.99132 5.96258 9.93854 6.06266C9.88576 6.16275 9.85427 6.27268 9.84605 6.38553C9.83782 6.49839 9.85305 6.61172 9.89077 6.7184L9.82183 6.76437C8.90217 6.3044 6.67174 6.67522 4.5878 7.40011C4.46536 7.44269 4.34329 7.48657 4.22159 7.53177C3.99128 6.67856 4.58727 6.05755 4.6197 6.02465L4.28765 5.69383C4.06054 5.93943 3.89066 6.2323 3.79022 6.55138C3.67163 6.92513 3.66835 7.32593 3.78082 7.70157C3.40582 7.85131 3.04546 8.0096 2.70448 8.1741C2.51537 7.47209 2.49858 6.74775 2.52433 6.22434C2.52964 6.11855 2.51372 6.01277 2.47751 5.91324C2.4413 5.8137 2.38554 5.72241 2.31351 5.64476C2.24149 5.5671 2.15464 5.50465 2.0581 5.46107C1.96157 5.4175 1.85728 5.39368 1.7514 5.39103C1.64551 5.38838 1.54017 5.40695 1.44157 5.44564C1.34297 5.48433 1.25311 5.54236 1.17729 5.61631C1.10146 5.69026 1.0412 5.77864 1.00006 5.87624C0.958919 5.97384 0.937726 6.07869 0.93773 6.18461V7.84223C0.93766 7.8758 0.924283 7.90797 0.900531 7.93169C0.87678 7.95542 0.844591 7.96876 0.811021 7.96879C0.73253 7.96876 0.65481 7.98426 0.582331 8.01438C0.509852 8.04451 0.444046 8.08867 0.388701 8.14432C0.333355 8.19998 0.289563 8.26603 0.259843 8.33868C0.230124 8.41132 0.215065 8.48913 0.215532 8.56762C0.225923 8.9479 0.293689 9.32443 0.416538 9.68447C0.0579151 10.0684 -0.0703466 10.4164 0.0353859 10.7205C0.429107 11.8525 1.33374 12.7277 2.5826 13.185C3.19648 13.4067 3.84457 13.5188 4.49727 13.516C5.21 13.5136 5.91728 13.3918 6.58977 13.1557C7.94156 12.6855 9.06398 11.8105 9.75023 10.692C10.4458 9.55844 10.612 8.31074 10.2182 7.17877C10.2106 7.15721 10.2018 7.13609 10.1919 7.11549C10.2907 7.18544 10.4038 7.23256 10.523 7.25347C10.6423 7.27437 10.7646 7.26853 10.8814 7.23637L10.8841 7.24205L10.9191 7.225C10.9902 7.20174 11.0577 7.16885 11.1199 7.12724L14.6016 5.43121C14.6856 5.39082 14.7608 5.3341 14.8227 5.26437C14.8847 5.19464 14.9321 5.11329 14.9623 5.02504C14.9925 4.9368 15.0048 4.84343 14.9986 4.75037C14.9923 4.65732 14.9676 4.56644 14.9259 4.48302L14.9259 4.48296ZM0.478149 10.5665C0.445718 10.4733 0.49939 10.3311 0.624399 10.1643C0.762759 10.4272 0.95183 10.66 1.18069 10.8493C1.07764 10.8397 0.975373 10.8231 0.874595 10.7995C0.652612 10.7457 0.51187 10.663 0.478237 10.5666V10.5665L0.478149 10.5665ZM8.87586 7.99604C8.82647 8.41615 8.7442 8.5027 8.74075 8.50618L8.74529 8.51072C8.55125 8.64285 8.33844 8.77463 8.10955 8.90468C8.26249 8.60194 8.36352 8.27568 8.40843 7.93949C8.41616 7.88273 8.44419 7.83068 8.48732 7.79298C8.53046 7.75528 8.58578 7.73448 8.64307 7.73441C8.67616 7.7344 8.70887 7.7414 8.73906 7.75494C8.76925 7.76848 8.79623 7.78826 8.81822 7.81298C8.84022 7.83769 8.85673 7.86679 8.86668 7.89834C8.87662 7.9299 8.87977 7.9632 8.87592 7.99606L8.87586 7.99604ZM4.27332 8.58757L4.63344 8.28748C4.54833 8.18609 4.47189 8.07773 4.40493 7.96355C4.51675 7.92227 4.62934 7.88189 4.74184 7.84272C6.02358 7.39691 7.27309 7.11408 8.25987 7.04641C8.71904 7.01494 9.10608 7.03328 9.37901 7.09952C9.60111 7.15337 9.74188 7.23616 9.77542 7.33264C9.80897 7.42911 9.74994 7.58137 9.60925 7.76143C9.52783 7.86307 9.43839 7.95803 9.3418 8.0454C9.36159 7.86131 9.30807 7.67683 9.19284 7.53191C9.07761 7.38699 8.90994 7.29328 8.72612 7.27108C8.54231 7.24887 8.35715 7.29996 8.21072 7.41328C8.0643 7.5266 7.9684 7.69303 7.94378 7.87653C7.82472 8.75283 7.30669 9.26351 7.1622 9.39065C6.62355 9.64005 6.07271 9.86225 5.51176 10.0564C5.27266 10.1396 5.0352 10.2169 4.79938 10.2885C3.87339 10.1098 3.21867 9.55021 2.85205 8.62302C3.20162 8.45251 3.57392 8.28857 3.9619 8.13376C4.05061 8.29486 4.1549 8.44687 4.2733 8.5876L4.27332 8.58757ZM0.720933 8.47498C0.732705 8.46306 0.746736 8.45361 0.762205 8.44719C0.777674 8.44076 0.794269 8.43748 0.811021 8.43754C0.968891 8.43736 1.12025 8.37457 1.23188 8.26294C1.34351 8.1513 1.4063 7.99995 1.40648 7.84208V6.18461C1.40653 6.09838 1.44081 6.0157 1.50179 5.95472C1.56276 5.89375 1.64544 5.85947 1.73167 5.85941C1.77576 5.85944 1.81938 5.86842 1.85989 5.88583C1.90039 5.90323 1.93693 5.92869 1.96729 5.96065C1.99766 5.99261 2.0212 6.03042 2.0365 6.07176C2.0518 6.11311 2.05853 6.15713 2.05628 6.20116C2.02277 6.88211 2.0576 7.88389 2.41391 8.78931C2.61914 9.31079 2.90941 9.73993 3.27662 10.0647C3.48573 10.2491 3.7211 10.4014 3.97499 10.5167C3.45165 10.6503 2.92029 10.7503 2.38417 10.816C2.30088 10.8257 2.14819 10.7845 2.14819 10.7845C1.62471 10.6972 1.22715 10.3665 0.966528 9.80151C0.792535 9.41164 0.696665 8.99144 0.684341 8.56469C0.684177 8.54805 0.687329 8.53156 0.693611 8.51615C0.699894 8.50075 0.709182 8.48675 0.720933 8.47498ZM10.6222 6.79416L10.6771 6.75757C10.703 6.74064 10.7254 6.71874 10.7428 6.69314C10.7602 6.66753 10.7724 6.63872 10.7786 6.60838C10.7848 6.57804 10.785 6.54676 10.779 6.51636C10.7731 6.48596 10.7612 6.45704 10.744 6.43127C10.7268 6.4055 10.7047 6.38339 10.6789 6.36622C10.6532 6.34905 10.6242 6.33716 10.5938 6.33123C10.5634 6.32531 10.5322 6.32547 10.5018 6.33171C10.4715 6.33794 10.4427 6.35013 10.4171 6.36757L10.3131 6.43686C10.3145 6.37752 10.3309 6.31949 10.3607 6.26818C10.3905 6.21688 10.4329 6.17397 10.4838 6.14346C10.5347 6.11295 10.5925 6.09583 10.6519 6.09371C10.7112 6.09158 10.7701 6.10452 10.823 6.1313C10.876 6.15809 10.9213 6.19786 10.9547 6.2469C10.9882 6.29594 11.0087 6.35265 11.0143 6.41174C11.0199 6.47083 11.0104 6.53038 10.9867 6.58482C10.9631 6.63926 10.9261 6.68683 10.8791 6.72309L10.7502 6.78593C10.7085 6.79693 10.665 6.79974 10.6223 6.79419L10.6222 6.79416Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M3.04688 4.6875H3.51562V5.15625H3.04688V4.6875Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M2.8125 6.79688H3.28125V7.26562H2.8125V6.79688Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M4.21875 8.90625H4.6875V9.375H4.21875V8.90625Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M0.46875 4.45312H0.9375V4.92188H0.46875V4.45312Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M2.44813 10.7418L2.70814 10.3518C2.13533 9.96989 2.11005 9.61807 2.10938 9.60327C2.10958 9.60723 2.10938 9.60928 2.10938 9.60928H1.64062C1.64062 9.6701 1.66327 10.2187 2.44813 10.7418Z"
|
|
fill="#1D89AB"/>
|
|
<path d="M4.45312 4.45309C4.45312 4.21408 4.55938 3.92727 4.76042 3.62366C4.85724 3.4772 4.96679 3.33956 5.08781 3.21236L4.92188 3.04684L4.75614 2.8811C4.72465 2.91263 3.98438 3.66207 3.98438 4.45309H4.45312Z"
|
|
fill="#1D89AB"/>
|
|
</g>
|
|
<defs>
|
|
<clipPath
|
|
id="clip0_50_184">
|
|
<rect fill="white"/>
|
|
</clipPath>
|
|
</defs>
|
|
</svg>
|
|
</div>
|
|
<div class="status">
|
|
<h4 class="c_blue">
|
|
Ready
|
|
</h4>
|
|
<a class="btn btn-transparent mt c_blue">
|
|
<t t-esc="order.name"/>
|
|
</a>
|
|
<t t-esc="order.order_time"/>
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<span>
|
|
<t t-esc="order.user_id[1]"/>
|
|
</span>
|
|
<img src="pos_kitchen_screen_odoo/static/src/assets/icons/Vector (3).svg"
|
|
alt=""/>
|
|
</div>
|
|
</div>
|
|
<t t-if="order.order_status=='draft'">
|
|
<button class="btn accept_order btn-primary"
|
|
t-attf-id="order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Accept
|
|
</button>
|
|
<button class="btn cancel_order btn-primary"
|
|
t-attf-id="cancel_order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Cancel
|
|
</button>
|
|
</t>
|
|
<t t-if="order.order_status=='waiting'">
|
|
<t t-foreach="order.lines"
|
|
t-as="lines">
|
|
<t t-foreach="widget.lines"
|
|
t-as="line">
|
|
<t t-if="lines==line.id">
|
|
<ul class="list-group list-group-flush">
|
|
<t t-if="order.order_status=='waiting' and line.order_status!='ready'">
|
|
<button class="list-group-item accept_order_line "
|
|
t-attf-id="lines_id_{{line.id}}"
|
|
t-att-value="line.id">
|
|
<span>
|
|
<t t-esc="line.qty"/>
|
|
x
|
|
</span>
|
|
<t t-esc="line.full_product_name"/>
|
|
<br/>
|
|
<t t-if="line.note">
|
|
<i class="fa fa-tag"
|
|
role="img"
|
|
aria-label="Note"
|
|
title="Note"/>
|
|
<t t-esc="line.note"/>
|
|
</t>
|
|
</button>
|
|
</t>
|
|
<t t-elif="order.order_status=='waiting' and line.order_status=='ready'">
|
|
<button class="list-group-item accept_order_line "
|
|
style="text-decoration: line-through !important;color: #bfbfbf !important;"
|
|
t-attf-id="lines_id_{{line.id}}"
|
|
t-att-value="line.id">
|
|
<span>
|
|
<t t-esc="line.qty"/>
|
|
x
|
|
</span>
|
|
<t t-esc="line.full_product_name"/>
|
|
<br/>
|
|
<t t-if="line.note">
|
|
<i class="fa fa-tag"
|
|
role="img"
|
|
aria-label="Note"
|
|
title="Note"/>
|
|
<t t-esc="line.note"/>
|
|
</t>
|
|
</button>
|
|
</t>
|
|
</ul>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
<div class="card-bottom">
|
|
<button class="btn done_order btn-primary"
|
|
t-attf-id="done_order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Done
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
<t t-elif="widget.stages=='draft'">
|
|
<t t-if="order.order_status=='draft'">
|
|
<div id="s1"
|
|
class="col-lg-4 col-md-6 col-12">
|
|
<div class="card">
|
|
<div class="card-header bg_grey">
|
|
<div class="left">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 10 12"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M9.18821 3.16036L6.73523 0.648239C6.43604 0.349181 6.01726 0.169742 5.53864 0.169742H2.00871C1.11127 0.109927 0.333496 0.887493 0.333496 1.78468V10.1584C0.333496 11.0556 1.05145 11.8332 2.00871 11.8332H7.99161C8.88907 11.8332 9.66683 11.1154 9.66683 10.1584V4.2968C9.66683 3.87811 9.48734 3.45943 9.18821 3.16036ZM3.20529 4.89494H5.00016C5.2395 4.89494 5.47879 5.07437 5.47879 5.37345C5.47879 5.67246 5.2993 5.8519 5.00016 5.8519H3.20529C2.96597 5.8519 2.72666 5.67246 2.72666 5.37345C2.72666 5.07437 2.96597 4.89494 3.20529 4.89494ZM6.79502 8.24444H3.20529C2.96597 8.24444 2.72666 8.06501 2.72666 7.76593C2.72666 7.46686 2.90615 7.28742 3.20529 7.28742H6.79502C7.03436 7.28742 7.27365 7.46686 7.27365 7.76593C7.27365 8.06501 7.03436 8.24444 6.79502 8.24444Z"
|
|
fill="#545454"/>
|
|
</svg>
|
|
</div>
|
|
<div class="status">
|
|
<h4>
|
|
Cooking
|
|
</h4>
|
|
<a class="btn btn-transparent mt">
|
|
<t t-esc="order.name"/>
|
|
</a>
|
|
<t t-esc="order.order_time"/>
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<span>
|
|
<t t-esc="order.user_id[1]"/>
|
|
</span>
|
|
<img src="pos_kitchen_screen_odoo/static/src/assets/icons/Vector5.svg"
|
|
alt=""/>
|
|
</div>
|
|
</div>
|
|
<ul class="list-group list-group-flush">
|
|
<t t-foreach="order.lines"
|
|
t-as="lines">
|
|
<t t-foreach="widget.lines"
|
|
t-as="line">
|
|
<t t-if="lines==line.id">
|
|
<button class="list-group-item">
|
|
<span>
|
|
<t t-esc="line.qty"/>
|
|
x
|
|
</span>
|
|
<t t-esc="line.full_product_name"/>
|
|
<br/>
|
|
<t t-if="line.note">
|
|
<i class="fa fa-tag"
|
|
role="img"
|
|
aria-label="Note"
|
|
title="Note"/>
|
|
<t t-esc="line.note"/>
|
|
</t>
|
|
</button>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</ul>
|
|
<t t-if="order.order_status=='draft'">
|
|
<div class="accept_cancel">
|
|
<button class="btn accept_order btn-primary"
|
|
t-attf-id="order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Accept
|
|
</button>
|
|
<button class="btn cancel_order btn-secondary"
|
|
t-attf-id="cancel_order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
<t t-else="">
|
|
<t t-if="order.order_status=='draft'">
|
|
<div id="s1"
|
|
class="col-lg-4 col-md-6 col-12">
|
|
<div class="card">
|
|
<div class="card-header bg_grey">
|
|
<div class="left">
|
|
<div class="icon">
|
|
<svg viewBox="0 0 10 12"
|
|
fill="none"
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M9.18821 3.16036L6.73523 0.648239C6.43604 0.349181 6.01726 0.169742 5.53864 0.169742H2.00871C1.11127 0.109927 0.333496 0.887493 0.333496 1.78468V10.1584C0.333496 11.0556 1.05145 11.8332 2.00871 11.8332H7.99161C8.88907 11.8332 9.66683 11.1154 9.66683 10.1584V4.2968C9.66683 3.87811 9.48734 3.45943 9.18821 3.16036ZM3.20529 4.89494H5.00016C5.2395 4.89494 5.47879 5.07437 5.47879 5.37345C5.47879 5.67246 5.2993 5.8519 5.00016 5.8519H3.20529C2.96597 5.8519 2.72666 5.67246 2.72666 5.37345C2.72666 5.07437 2.96597 4.89494 3.20529 4.89494ZM6.79502 8.24444H3.20529C2.96597 8.24444 2.72666 8.06501 2.72666 7.76593C2.72666 7.46686 2.90615 7.28742 3.20529 7.28742H6.79502C7.03436 7.28742 7.27365 7.46686 7.27365 7.76593C7.27365 8.06501 7.03436 8.24444 6.79502 8.24444Z"
|
|
fill="#545454"/>
|
|
</svg>
|
|
</div>
|
|
<div class="status">
|
|
<h4>
|
|
Cooking
|
|
</h4>
|
|
<a class="btn btn-transparent mt">
|
|
<t t-esc="order.name"/>
|
|
</a>
|
|
<t t-esc="order.order_time"/>
|
|
</div>
|
|
</div>
|
|
<div class="right">
|
|
<span>
|
|
<t t-esc="order.user_id[1]"/>
|
|
</span>
|
|
<img src="pos_kitchen_screen_odoo/static/src/assets/icons/Vector5.svg"
|
|
alt=""/>
|
|
</div>
|
|
</div>
|
|
<ul class="list-group list-group-flush">
|
|
<t t-foreach="order.lines"
|
|
t-as="lines">
|
|
<t t-foreach="widget.lines"
|
|
t-as="line">
|
|
<t t-if="lines==line.id">
|
|
<button class="list-group-item">
|
|
<span>
|
|
<t t-esc="line.qty"/>
|
|
x
|
|
</span>
|
|
<t t-esc="line.full_product_name"/>
|
|
<br/>
|
|
<t t-if="line.note">
|
|
<i class="fa fa-tag"
|
|
role="img"
|
|
aria-label="Note"
|
|
title="Note"/>
|
|
<t t-esc="line.note"/>
|
|
</t>
|
|
</button>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</ul>
|
|
<t t-if="order.order_status=='draft'">
|
|
<div class="accept_cancel">
|
|
<button class="btn accept_order btn-primary"
|
|
t-attf-id="order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Accept
|
|
</button>
|
|
<button class="btn cancel_order btn-secondary"
|
|
t-attf-id="cancel_order_id_{{order.id}}"
|
|
t-att-value="order.id"
|
|
type="button">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</t>
|
|
</templates>
|
|
|