[FIX] point_of_sale: make the web printed receipt fit on 80mm paper
authorFrédéric van der Essen <fva@openerp.com>
Tue, 12 Nov 2013 14:04:57 +0000 (15:04 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Tue, 12 Nov 2013 14:04:57 +0000 (15:04 +0100)
bzr revid: fva@openerp.com-20131112140457-sfmbu0ujz8lwfiil

addons/point_of_sale/static/src/css/pos.css
addons/point_of_sale/static/src/xml/pos.xml

index da8325c..89ab429 100644 (file)
@@ -97,6 +97,9 @@
 .point-of-sale .pos-right-align {
     text-align: right;
 }
+.point-of-sale .pos-center-align {
+    text-align: center;
+}
 .point-of-sale .pos-right-align input {
     text-align: right;
     border: 1px solid #cecbcb;
 }
 
 @media print {
+    .point-of-sale{
+        background: white !important;
+    }
     .point-of-sale #topheader, .point-of-sale #leftpane {
         display: none !important;
     }
     .pos-actionbar {
         display: none !important;
     }
-    .pos-sale-ticket {
-        margin: 0;
-    }
     .debug-widget{
         display: none !important;
     }
         background: transparent !important;
     }
     .point-of-sale .pos-sale-ticket{
+        margin: 0;
         margin-left: auto !important;
         margin-right: auto !important;
-        border: solid 1px black !important;
+        border: none !important;
+        font-size: 13px !important;
+        width: 266px !important;
     }
 }
 
index d5f57e0..742c823 100644 (file)
     <t t-name="PosTicket">
         <div class="pos-sale-ticket">
             
-            <div class="pos-right-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
+            <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
                 Date.CultureInfo.formatPatterns.longTime)"/> <t t-esc="widget.currentOrder.attributes.name"/></div>
             <br />
             <t t-esc="widget.company.name"/><br />