Forráskód Böngészése

Merge pull request #18 from M22TechConsulting/validate_rate_prod

[UPD] custom_report_invoice
FernizaM22 2 éve
szülő
commit
acacbd2547

+ 1 - 1
cutom_report_invoice/__manifest__.py

@@ -3,7 +3,7 @@
     'description': """
         Custom Report Invoice M22      
     """,
-    "version": "16.0.1.0.2",
+    "version": "16.0.1.0.3",
     "category": "Partner",
     "author": "M22",
     'website': "https://www.m22.mx",

+ 1 - 1
cutom_report_invoice/views/account_move_views.xml

@@ -6,7 +6,7 @@
                 <strong>Currency:</strong>
                 <p class="m-0" t-field="o.currency_id"/>
             </div>
-            <div class="col-auto col-3 mw-100 mb-2" t-if="o.rate" name="rate">
+            <div class="col-auto col-3 mw-100 mb-2" t-if="o.rate and o.currency_id.name == 'USD'" name="rate">
                 <strong>Exchange rate:</strong>
                 <p class="m-0" t-field="o.rate"/>
             </div>

+ 1 - 1
cutom_report_invoice/views/report_invoice_view.xml

@@ -61,7 +61,7 @@
                                     <strong>Currency:</strong>
                                     <p class="m-0" t-field="o.currency_id"/>
                                 </div>
-                                <div class="col-auto col-3 mw-100 mb-2" t-if="o.rate" name="rate">
+                                <div class="col-auto col-3 mw-100 mb-2" t-if="o.rate and o.currency_id.name == 'USD'" name="rate">
                                     <strong>Exchange rate:</strong>
                                     <p class="m-0" t-field="o.rate"/>
                                 </div>