Prechádzať zdrojové kódy

[FIX] Ajustes en la vista - se agrego datos del cliente

Rodney Elpidio Enciso Arias 7 rokov pred
rodič
commit
5a62e07f2f
2 zmenil súbory, kde vykonal 7 pridanie a 4 odobranie
  1. BIN
      __init__.pyc
  2. 7 4
      static/src/xml/pos_receipt.xml

BIN
__init__.pyc


+ 7 - 4
static/src/xml/pos_receipt.xml

@@ -11,9 +11,6 @@
                 <br/>
                 <t t-esc="order.get('name')"/></div>
             <br/>
-            Phone: <t t-esc="widget.pos.company.phone || ''"/><br />
-            User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />
-            Shop: <t t-esc="widget.pos.shop.name"/><br />
             <br />
             <t t-if="widget.pos.config.receipt_header">
                 <div style='text-align:center;font-size: 30px;'>
@@ -21,6 +18,13 @@
                 </div>
                 <br />
             </t>
+            Phone: <t t-esc="widget.pos.company.phone || ''"/><br />
+            User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />
+            <p>--------------------------------------------</p>
+            Cliente: <t t-esc="order.changed.client.name"/><br/>
+            Teléfono: <t t-esc="order.changed.client.phone"/><br/>
+            Dirección: <t t-esc="order.changed.client.address"/><br/>
+            <p>--------------------------------------------</p>
             <table class="table table-condensed">
                 <thead>
                     <tr>
@@ -28,7 +32,6 @@
                         <th class="text-right">Cant.</th>
                         <th class="text-right">Precio</th>
                     </tr>
-                    <p>--------------------------------------------</p>
                 </thead>
                 <tbody>
                     <colgroup>