Browse Source

Ajustes cliente en cocina

sebastian 5 years ago
parent
commit
87d48c16cf
2 changed files with 10 additions and 5 deletions
  1. BIN
      __init__.pyc
  2. 10 5
      static/src/xml/pos.xml

BIN
__init__.pyc


+ 10 - 5
static/src/xml/pos.xml

@@ -6,7 +6,7 @@
                 <div class="pos-receipt-container">
                 </div>
             </div>
-        </div> 
+        </div>
     </t>
     <t t-name="KitchenTicketButton">
         <span class="control-button order-printbill">
@@ -18,11 +18,16 @@
         <div class="pos-sale-ticket" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
             <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
                 Date.CultureInfo.formatPatterns.longTime)"/>
-                <br/> 
+                <br/>
                 <t t-esc="order.get('name')"/>
             </div>
             <br/>
-            User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br/>
+            User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
+            <t t-if="order.attributes.client">
+               <br/>
+               Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br/>
+               Teléfono: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br/><br/>
+           </t>
             <br />
             <div class="pos-center-align" style="font-size:25px;font-weight:bold">Cocina</div>
             <p>--------------------------------------------</p>
@@ -44,7 +49,7 @@
                         <tr>
                             <td><p>-----------------------------------</p></td>
                             <td><p>--------</p></td>
-                        </tr>   
+                        </tr>
                     </t>
                 </tbody>
             </table>
@@ -57,4 +62,4 @@
             </t>
         </div>
     </t>
-</templates>
+</templates>