Преглед изворни кода

Módulo para factura y nota legal de bioelectric

SEBAS пре 3 недеља
родитељ
комит
311020ef23
1 измењених фајлова са 14 додато и 1 уклоњено
  1. 14 1
      nota_credito_bioelectric.xml

+ 14 - 1
nota_credito_bioelectric.xml

@@ -10,6 +10,19 @@
         file="factura_venta_bioelectric.report_notacredito_bioelectric"
      />
 
+     <template id="report_header_custom" inherit_id="report.external_layout_header">
+          <xpath expr="//div[@class='header']" position="replace">
+             <div class ="header">
+             </div>
+          </xpath>
+     </template>
+
+     <template id="external_layout_footer" inherit_id="report.external_layout_footer">
+         <xpath expr="//div[@class='footer']"  position="replace">
+             <div class ="footer">
+             </div>
+         </xpath>
+     </template>
 
     <template id="report_notacredito_bioelectric">
         <t t-call="report.html_container">
@@ -100,7 +113,7 @@
                               <table style="border-collapse: collapse; width: 100%;">
                               <tr>
                                 <td style="padding: 5px; padding-left: 0.2cm;  border-top: 2px solid #ddd;  border-bottom: 2px solid #ddd;; border-left: 3px solid #ddd; border-right: 3px solid #ddd; width: 70%;"><strong>Dirección: </strong><t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
-                                <t t-f="not o.partner_id.street"> </t></td>
+                                <t t-if="not o.partner_id.street"> </t></td>
                                 <td style="padding: 5px; padding-left: 0.2cm; padding-bottom: 0.2cm; border-top: 3px solid #ddd; border-bottom: 3px solid #ddd; border-left: 2px solid #ddd; border-right: 3px solid #ddd; width: 30%;"><strong>RUC Nº: </strong><span t-field="o.partner_id.ruc"/></td>
                               </tr>
                               </table>