ソースを参照

[FIX] modificaciones en la vista

Rodney Elpidio Enciso Arias 6 年 前
コミット
51f9a64133
1 ファイル変更10 行追加1 行削除
  1. 10 1
      static/src/xml/pos.xml

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

@@ -7,7 +7,7 @@
             <div class="pos-center-align">
                 <img t-att-src="widget.pos.company_logo_base64"/><br />
             </div>
-            <br/>
+            <br/><br/>
             <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
                 Date.CultureInfo.formatPatterns.longTime)"/> 
                 <br/>
@@ -30,6 +30,15 @@
                 Teléfono: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br />
                 Dirección: <t t-esc="order.attributes.client.address ? order.attributes.client.address : ''"/>
             </t>
+            <!-- <t t-js="ctx">
+               console.log(ctx)
+            </t> -->
+            <t t-if="!order.attributes.client">
+                <p>--------------------------------------------</p>
+                Cliente: <br/>
+                Teléfono: <br/>
+                Dirección: <br/>
+            </t>
             <p>--------------------------------------------</p>
             <table class="table table-condensed">
                 <thead>