فهرست منبع

Añadir campo que no muestre monto al legir en ventas

sebas 3 سال پیش
والد
کامیت
f38aeb1e5f
2فایلهای تغییر یافته به همراه12 افزوده شده و 4 حذف شده
  1. 1 1
      __openerp__.py
  2. 11 3
      presupuesto_venta_tag.xml

+ 1 - 1
__openerp__.py

@@ -29,7 +29,7 @@ Formato para imprimir el Presupuesto de Venta tag
     """,
     'author': 'Eiru/Sebastian Penayo',
     'website': 'http://www.eiru.com.py',
-    'depends': ['base','sale','eiru_extra_sale'],
+    'depends': ['base','sale','eiru_extra_sale','diseno_tag_check'],
     'data': [
 	    'presupuesto_venta_tag.xml'
     ],

+ 11 - 3
presupuesto_venta_tag.xml

@@ -369,19 +369,27 @@
 
                                 <div class="total" >
                                     <t t-if="o.currency_id.id == 166">
-                                        <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span> Gs.
+                                       <t t-if="o.sivisible == True">
+                                          <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span> Gs.
+                                       </t>
                                     </t>
                                     <t t-if="o.currency_id.id == 3">
+                                      <t t-if="o.sivisible == True">
                                         <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"> </span> U$.
+                                      </t>
                                     </t>
                                 </div>
 
                                 <div class="totalenletra" >
                                      <t t-if="o.currency_id.id == 166">
-                                        <span t-esc="convertir(o.amount_total,o.currency_id.en_letra)"/> Guaraníes
+                                       <t t-if="o.sivisible == True">
+                                         <span t-esc="convertir(o.amount_total,o.currency_id.en_letra)"/> Guaraníes
+                                       </t>
                                      </t>
                                      <t t-if="o.currency_id.id == 3">
-                                        <span t-esc="convertir(o.amount_total,o.currency_id.en_letra)" options="{'currency_field': 'o.currency_id'}"/> Dólares
+                                         <t t-if="o.sivisible == True">
+                                            <span t-esc="convertir(o.amount_total,o.currency_id.en_letra)" options="{'currency_field': 'o.currency_id'}"/> Dólares
+                                         </t>
                                      </t>
                                 </div>