summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/css
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-03-07 14:24:14 +0000
committerAntoine Prieels <anp@odoo.com>2019-08-08 11:53:37 +0000
commitf2230f44959f5cdf99f02d6b3618c3ef33ae0928 (patch)
tree26dd034f1839d381219b56b9089d933952101378 /addons/point_of_sale/static/src/css
parent463c0ff3a2d8e1f2f9b1953eaff77a53f18482d4 (diff)
[REF] pos, pos_*: Change Escpos' XML to HTML
Receipt are now printed as JPGs so receipts need to be formatted as classic HTML to be rendered as images by Wkhtmltoimage. There were two versions of the receipt for an order. The one in XML, to be printed, and the one in HTML, that was displayed in the POS. Since both of them are now HTML, we can remove one of them. TaskID: 1939455
Diffstat (limited to 'addons/point_of_sale/static/src/css')
-rw-r--r--addons/point_of_sale/static/src/css/pos.css31
-rw-r--r--addons/point_of_sale/static/src/css/pos_receipts.css64
2 files changed, 70 insertions, 25 deletions
diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css
index 603539760dd..ee107136876 100644
--- a/addons/point_of_sale/static/src/css/pos.css
+++ b/addons/point_of_sale/static/src/css/pos.css
@@ -1437,41 +1437,19 @@ td {
direction: ltr;
}
-.pos .pos-sale-ticket {
+.pos .pos-receipt-container > div {
text-align: left;
width: 300px;
background-color: white;
margin: 20px;
padding: 15px;
- font-size: 14px;
+ font-size: 16px;
padding-bottom:30px;
display: inline-block;
- font-family: "Inconsolata";
border: solid 1px rgb(220,220,220);
border-radius: 3px;
overflow: hidden;
}
-.pos .pos-sale-ticket pre{
- font-family: "Inconsolata";
-}
-.pos .pos-sale-ticket .emph{
- font-size: 20px;
- margin:5px;
-}
-.pos .pos-sale-ticket table {
- width: 100%;
- border: 0;
- table-layout: fixed;
-}
-.pos .pos-sale-ticket table td {
- border: 0;
- word-wrap: break-word;
-}
-
-.pos-receipts {
- height: 0;
- overflow: hidden;
-}
@page {
margin: 0;
@@ -1536,7 +1514,7 @@ td {
box-shadow: none !important;
background: transparent !important;
}
- .pos .pos-sale-ticket{
+ .pos .pos-receipt{
margin: 0;
margin-left: auto !important;
margin-right: auto !important;
@@ -1544,6 +1522,9 @@ td {
font-size: 13px !important;
width: 266px !important;
}
+ .pos .pos-receipts{
+ display: none !important;
+ }
.o_debug_manager {
display: none !important;
}
diff --git a/addons/point_of_sale/static/src/css/pos_receipts.css b/addons/point_of_sale/static/src/css/pos_receipts.css
new file mode 100644
index 00000000000..2c6d1fc18d0
--- /dev/null
+++ b/addons/point_of_sale/static/src/css/pos_receipts.css
@@ -0,0 +1,64 @@
+.pos-receipt-print {
+ width: 512px;
+ font-size: 28px;
+ padding-bottom: 2em;
+ color: #000000;
+}
+
+.pos-receipt .pos-receipt-right-align {
+ float: right;
+}
+
+.pos-receipt .pos-receipt-center-align {
+ text-align: center;
+}
+
+.pos-receipt .pos-receipt-left-padding {
+ padding-left: 2em;
+}
+
+.pos-receipt .pos-receipt-logo {
+ width: 50%;
+ display: block;
+ margin: 0 auto;
+}
+
+.pos-receipt .pos-receipt-contact {
+ text-align: center;
+ font-size: 75%;
+}
+
+.pos-receipt .pos-receipt-order-data {
+ text-align: center;
+ font-size: 75%;
+}
+
+.pos-receipt .pos-receipt-amount {
+ font-size: 125%;
+ padding-left: 6em;
+}
+
+.pos-receipt .pos-receipt-title {
+ font-weight: bold;
+ font-size: 125%;
+ text-align: center;
+}
+
+.pos-receipt .pos-receipt-header {
+ font-size: 125%;
+ text-align: center;
+}
+
+.pos-receipt .pos-order-receipt-cancel {
+ color: red;
+}
+
+.pos-receipts {
+ height: 0;
+ overflow: hidden;
+}
+
+.pos-payment-terminal-receipt {
+ text-align: center;
+ font-size: 75%;
+}