summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>2014-11-17 14:53:21 +0100
committerFrédéric van der Essen <fvdessen@gmail.com>2014-11-26 12:11:56 +0100
commit7f40375f6b1c4a6b92595be910f80cbc06fbb12e (patch)
treed17e9bfae97a3b17a9c8a9e7455874c0cc3c7bf9
parent91ebdd714e2e8e4bc63538e7fe211af9b8db0852 (diff)
[IMP] pos_restaurant: improve the kitchen receipts based on customer feedback : Put the quantities ont the left, Add the the time, and make the table name more legible
-rw-r--r--addons/pos_restaurant/static/src/js/multiprint.js13
-rw-r--r--addons/pos_restaurant/static/src/xml/multiprint.xml18
2 files changed, 21 insertions, 10 deletions
diff --git a/addons/pos_restaurant/static/src/js/multiprint.js b/addons/pos_restaurant/static/src/js/multiprint.js
index 8b1f9e94654..c6177449461 100644
--- a/addons/pos_restaurant/static/src/js/multiprint.js
+++ b/addons/pos_restaurant/static/src/js/multiprint.js
@@ -162,12 +162,25 @@ function openerp_restaurant_multiprint(instance,module){
rem = _rem;
}
+ var d = new Date();
+ var hours = '' + d.getHours();
+ hours = hours.length < 2 ? ('0' + hours) : hours;
+ var minutes = '' + d.getMinutes();
+ minutes = minutes.length < 2 ? ('0' + minutes) : minutes;
+
+ console.log(hours,minutes);
+
+
return {
'new': add,
'cancelled': rem,
'table': json.table || false,
'floor': json.floor || false,
'name': json.name || 'unknown order',
+ 'time': {
+ 'hours': hours,
+ 'minutes': minutes,
+ },
};
},
diff --git a/addons/pos_restaurant/static/src/xml/multiprint.xml b/addons/pos_restaurant/static/src/xml/multiprint.xml
index add7c486b64..babf264b1ba 100644
--- a/addons/pos_restaurant/static/src/xml/multiprint.xml
+++ b/addons/pos_restaurant/static/src/xml/multiprint.xml
@@ -13,7 +13,7 @@
align='center'
width='40'
size='double-height'
- line-ratio='0.6'
+ line-ratio='0.4'
value-decimals='3'
value-thousands-separator=''
value-autoint='on'
@@ -21,21 +21,19 @@
<div size='normal' ><t t-esc="changes.name" /></div>
<t t-if="changes.floor || changes.table">
<br />
- <div><span><t t-esc="changes.floor" /></span> / <span bold='on'><t t-esc="changes.table"/></span></div>
- </t>
- <t t-if="changes.table">
+ <div><span><t t-esc="changes.floor" /></span> / <span bold='on' size='double'><t t-esc="changes.table"/></span></div>
</t>
<br />
<br />
<t t-if="changes.cancelled.length > 0">
<div color='red'>
- <div bold='on' size='double'>CANCELLED</div>
+ <div bold='on' size='double'>CANCELLED <span bold='off' size='double-height'><t t-esc='changes.time.hours' />:<t t-esc='changes.time.minutes' /></span> </div>
<br />
<br />
<t t-foreach="changes.cancelled" t-as="change">
<line>
- <left><t t-esc="change.name" /></left>
- <right><value><t t-esc="change.qty" /></value></right>
+ <left><value><t t-esc="change.qty" /></value></left>
+ <right><t t-esc="change.name" /></right>
</line>
<t t-if="change.note">
<line font='b' bold='off' indent='1' line-ratio='1'>
@@ -50,13 +48,13 @@
</div>
</t>
<t t-if="changes.new.length > 0">
- <div bold='on' size='double'>NEW</div>
+ <div bold='on' size='double'>NEW <span bold='off' size='double-height'><t t-esc='changes.time.hours' />:<t t-esc='changes.time.minutes' /></span> </div>
<br />
<br />
<t t-foreach="changes.new" t-as="change">
<line>
- <left><t t-esc="change.name" /></left>
- <right><value><t t-esc="change.qty" /></value></right>
+ <left><value><t t-esc="change.qty" /></value></left>
+ <right><t t-esc="change.name" /></right>
</line>
<t t-if="change.note">
<line font='b' bold='off' indent='1' line-ratio='1'>