瀏覽代碼

Crear órdenes de pago para bioelectric.

SEBAS 3 周之前
父節點
當前提交
34c8f8ef92
共有 4 個文件被更改,包括 36 次插入13 次删除
  1. 5 1
      orden_pago.py
  2. 二進制
      orden_pago.pyc
  3. 1 0
      orden_pago_view.xml
  4. 30 12
      reports/orden_pago_report.xml

+ 5 - 1
orden_pago.py

@@ -96,7 +96,11 @@ class OrdenPago(models.Model):
     )
 
     contacto = fields.Char(
-        string='Contacto'
+        string='Solicitado por'
+    )
+
+    solicitado_por = fields.Char(
+        string='Solicitado por'
     )
 
     metodo_ids = fields.One2many(

二進制
orden_pago.pyc


+ 1 - 0
orden_pago_view.xml

@@ -27,6 +27,7 @@
                               <field name="contacto"/>
                               <field name="user_id" readonly="1"/>
                               <field name="responsable"/>
+                              <field name="solicitado_por"/>
                           </group>
 
                           <notebook>

+ 30 - 12
reports/orden_pago_report.xml

@@ -47,7 +47,7 @@
                                 </t>
                                 <t>
                                   <div>
-                                      <h3><center><strong>RECIBO DE DINERO</strong></center></h3>
+                                      <h3><center><strong>ORDEN DE PAGO</strong></center></h3>
                                   </div>
                                 </t>
                                 <t>
@@ -133,22 +133,40 @@
                                 <strong>TOTAL</strong> <span t-esc="'{0:,.0f}'.format(o.total)"/>
                             </p>
 
-                            <p style="text-align: left; font-size: 16px;">
-                                  <strong>RECIBO DE DINERO                                 IMPORTE TOTAL</strong> <span t-esc="'{0:,.0f}'.format(o.total)"/>
-                            </p>
+                            <!-- Separador -->
+                            <hr style="border: 1px solid #ddd; margin: 30px 0;" />
 
-                            <p style="text-align: left; font-size: 14px;">
-                                <strong>Recibido por  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ C.I.Nº _ _ _ _ _ _ _ _</strong>
-                            </p>
+                            <!-- Título destacado de la sección -->
+                            <h3 style="text-align: center; font-size: 18px; text-decoration: underline; margin-bottom: 10px;">
+                                RECIBO DE DINERO
+                            </h3>
 
-                            <p style="text-align: left; font-size: 14px;">
-                                <strong>Firma  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Fecha _ _ _ _ _ _ _ _</strong>
-                            </p>
+                            <!-- Recuadro con total -->
+                            <div style="border: 1px solid #ddd; padding: 10px; font-size: 12px; margin-bottom: 10px;">
+                                <strong>Importe Total:</strong> <span t-esc="'{0:,.0f}'.format(o.total)"/>
+                            </div>
 
-                            <p style="text-align: left; font-size: 10px;">
-                                <strong>Obs.: La firma de este documento implica la conformidad de los datos arriba detallados y la recepción de los montos de dinero.</strong>
+                            <!-- Campos de firma -->
+                            <table style="width: 100%; font-size: 12px; margin-bottom: 10px;">
+                                <tr>
+                                    <td><strong>Recibido por:</strong> ______________________</td>
+                                    <td><strong>C.I. Nº:</strong> ______________________</td>
+                                </tr>
+                                <tr>
+                                    <td><strong>Firma:</strong> ____________________________</td>
+                                    <td><strong>Fecha:</strong> ____________________________</td>
+                                </tr>
+                            </table>
+
+                            <p style="font-size: 11px;">
+                                <strong>Obs.:</strong> La firma de este documento implica la conformidad de los datos arriba detallados y la recepción de los montos de dinero.
                             </p>
 
+                            <p style="font-size: 12px; margin-top: 10px;">
+                                <strong>Solicitado por:</strong> <span t-field="o.solicitado_por"/> &#160;&#160;&#160;
+                                <strong>Contabilidad:</strong> _____________________ &#160;&#160;&#160;
+                                <strong>Tesorería:</strong> _____________________
+                            </p>
                         </div>
                     </t>
                 </t>