Browse Source

[FIX] ajuste en la vista del ticket para la cocina

Rodney Elpidio Enciso Arias 7 years ago
parent
commit
7bbc6eb9d7
2 changed files with 22 additions and 26 deletions
  1. 4 4
      static/src/js/main.js
  2. 18 22
      static/src/xml/pos.xml

+ 4 - 4
static/src/js/main.js

@@ -44,10 +44,10 @@ openerp.eiru_kitchen_ticket = function (instance) {
         refresh: function() {
             var order = this.pos.get('selectedOrder');
             $('.pos-receipt-container', this.$el).html(QWeb.render('KitchenTicket',{
-                    widget:this,
-                    order: order,
-                    orderlines: order.get('orderLines').models,
-                }));
+                widget:this,
+                order: order,
+                orderlines: order.get('orderLines').models,
+            }));
         },
     });
 

+ 18 - 22
static/src/xml/pos.xml

@@ -21,36 +21,32 @@
                 <br/> 
                 <t t-esc="order.get('name')"/>
             </div>
-            <!-- <br/>
-            <t t-esc="widget.pos.company.name"/> -->
             <br/>
             User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br/>
             <br />
-            <div class="pos-center-align" style="font-size:25pt;font-weight:bold">Cocina</div>
-            <!-- <br /> -->
-            <table>
-                <thead>
-                    <tr>
-                        <th>Producto</th>
-                        <th>Cantidad</th>
-                    </tr>
-                    <p>--------------------------------------------</p>
-                </thead>
+            <div class="pos-center-align" style="font-size:25px;font-weight:bold">Cocina</div>
+            <p>--------------------------------------------</p>
+            <table style="font-size:18px;">
                 <tbody>
                     <colgroup>
                         <col width='80%' />
                         <col width='20%' />
                     </colgroup>
-                    <tr t-foreach="orderlines" t-as="orderline">
-                        <td>
-                            <t t-esc="orderline.get_product().display_name"/>
-                        </td>
-                        <td class="pos-right-align">
-                            <t t-esc="orderline.get_quantity_str_with_unit()"/>
-                        </td>
-                    </tr>  
+                    <t t-foreach="orderlines" t-as="orderline">
+                       <tr>
+                            <td>
+                                <t t-esc="orderline.get_product().display_name"/>
+                            </td>
+                            <td class="pos-right-align">
+                                <t t-esc="orderline.get_quantity_str_with_unit()"/>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td><p>-----------------------------------</p></td>
+                            <td><p>--------</p></td>
+                        </tr>   
+                    </t>
                 </tbody>
-                
             </table>
             <br />
             <t t-if="widget.pos.config.receipt_footer">
@@ -61,4 +57,4 @@
             </t>
         </div>
     </t>
-</templates>
+</templates>