Browse Source

!fixup [FIX] textinput

pull/428/head
Pierrick Brun 5 years ago
parent
commit
7d3380f19a
  1. 3
      pos_mail_receipt/static/src/css/pos.css
  2. 2
      pos_mail_receipt/static/src/js/screens.js
  3. 1
      pos_mail_receipt/templates/assets.xml

3
pos_mail_receipt/static/src/css/pos.css

@ -0,0 +1,3 @@
.pos .modal-dialog .popup-textinput input{
margin-left: 10%
}

2
pos_mail_receipt/static/src/js/screens.js

@ -29,7 +29,7 @@ odoo.define("pos_mail_receipt.screens", function (require) {
if( this.pos.get_order().get_client() && this.pos.get_order().get_client().email ) {
self._send_email_server(this.pos.get_order(), {"email": this.pos.get_order().get_client().email});
} else {
this.gui.show_popup('textarea', {
this.gui.show_popup('textinput', {
'title':_t('E-mail address to use'),
'value': '',
'confirm': function(value) {

1
pos_mail_receipt/templates/assets.xml

@ -4,6 +4,7 @@
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr=".">
<link href="/pos_mail_receipt/static/src/css/pos.css" rel="stylesheet"/>
<script
type="text/javascript"
src="/pos_mail_receipt/static/src/js/screens.js"/>

Loading…
Cancel
Save