diff options
| author | Joseph Caburnay <jcb@odoo.com> | 2020-08-13 07:28:02 +0000 |
|---|---|---|
| committer | Joseph Caburnay <jcb@odoo.com> | 2020-08-17 10:49:05 +0000 |
| commit | 4bd9ced6bfd833199d0380de61b1a5012b470890 (patch) | |
| tree | 400c4d4ead25a3bd8ca2814491eedc89db4309dc /addons/point_of_sale/static/src/css | |
| parent | 9f835a30df5c17d8a4f7630770655bb8f3175116 (diff) | |
[IMP] point_of_sale,pos_*: new receipt screen
Aside from new look, we also move the email option from payment
screen to receipt screen. This allows emailing the receipt to a
customer that is not in the contact list.
We also removed invoicing in the receipt screen during failed invoicing
from payment screen as it is removed in here: bc48e0033e2166728ae72739b72076ea67e86e74
closes odoo/odoo#55868
Related: odoo/enterprise#12395
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/static/src/css')
| -rw-r--r-- | addons/point_of_sale/static/src/css/pos.css | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/css/pos.css b/addons/point_of_sale/static/src/css/pos.css index f3af94c55b9..21b924ddf1e 100644 --- a/addons/point_of_sale/static/src/css/pos.css +++ b/addons/point_of_sale/static/src/css/pos.css @@ -3429,3 +3429,115 @@ td { .currencyCashBox { font-size: 30px; } + +.receipt-screen .default-view { + display: flex; + overflow: hidden; +} + +.receipt-screen .default-view .pos-receipt-container { + flex: 0 1 400px; + overflow: auto; +} + +.receipt-screen .default-view .actions { + flex: 1; + margin: 0 1.5rem; +} + +.receipt-screen .default-view .actions * { + font-size: 1rem; +} + +.receipt-screen .default-view .actions h1 { + font-size: 1.5rem; + margin-bottom: 4rem; +} + +.receipt-screen .default-view .actions .buttons { + display: flex; + margin: 1rem 0px; +} + +.receipt-screen .default-view .actions .buttons .button { + flex: 1; + border: solid 1px rgb(209, 209, 209); + padding: 1rem; + text-align: center; + border-radius: 3px; + cursor: pointer; + background: rgb(230, 230, 230); +} + +.receipt-screen .default-view .actions .send-email { + display: flex; +} + +.receipt-screen .default-view .actions .send-email .email-icon { + padding: 1rem; + border: solid 1px rgb(209, 209, 209); + border-right: none; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.receipt-screen .default-view .actions .send-email .input-email { + display: flex; + flex: 1; + background: white; + border: solid 1px rgb(209, 209, 209); + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + +.receipt-screen .default-view .actions .send-email input { + flex: 1; + padding-left: 1rem; + border: none; + color: #555555; +} + +.receipt-screen .default-view .actions .send-email input:focus { + outline: none; +} + +.receipt-screen .default-view .actions .send-email button.send { + padding: 1rem 40px; + margin: 2px; + border: none; + background: rgb(230, 230, 230); +} + +.receipt-screen .default-view .actions .send-email button.send.highlight { + color: white; + background-color: #6EC89B; +} + +.receipt-screen .notice { + margin-top: 6px; +} + +.receipt-screen .notice.failed { + color: rgb(168, 89, 89); +} + +.receipt-screen .notice.successful { + color: #6EC89B; +} + +@media screen and (max-width: 768px) { + .receipt-screen .default-view { + flex-direction: column-reverse; + overflow: auto; + } + .receipt-screen .default-view .actions { + flex: 0; + } + .receipt-screen .default-view .actions h1 { + margin-bottom: 1.5rem; + } + .receipt-screen .default-view .pos-receipt-container { + flex: 1; + overflow: visible; + } +} |
