소스 검색

Colocar columna secuencia de ventas en presupuesto de venta.

sebas 3 년 전
부모
커밋
353bad65d7
2개의 변경된 파일16개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      __openerp__.py
  2. 15 6
      presupuesto_venta_profesional.xml

+ 1 - 1
__openerp__.py

@@ -29,7 +29,7 @@ Formato para imprimir el Presupuesto de Venta Ferretería Profesional
     """,
     'author': 'Eiru/Sebastian Penayo',
     'website': 'http://www.eiru.com.py',
-    'depends': ['base','sale'],
+    'depends': ['base','sale', 'sale_order_line_sequence'],
     'data': [
 	    'presupuesto_venta_profesional.xml'
     ],

+ 15 - 6
presupuesto_venta_profesional.xml

@@ -116,23 +116,27 @@
                             text-align: center;
                         }
                         .art-col2{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col3{
                             width:3cm;
                             text-align: left;
                         }
-                        .art-col3{
+                        .art-col4{
 							padding-left: 0.7cm;
                             width:1cm;
                             text-align: center;
                         }
-                        .art-col4{
+                        .art-col5{
                             padding-left: 0.3cm;
                             width:9cm;
                         }
-                        .art-col5{
+                        .art-col6{
                             width:2.9cm;
                             text-align: right;
                         }
-                        .art-col6{
+                        .art-col7{
                             width:3cm;
                             text-align: right;
                         }
@@ -248,6 +252,7 @@
                             <table class="table table-condensed table-bordered">
                                 <thead>
                                     <tr>
+                                        <th class="text-center">Orden</th>
                                         <th class="text-center">Imagen</th>
                                         <th class="text-center">Cantidad</th>
                                         <th class="text-center">Medida</th>
@@ -262,6 +267,9 @@
                                    <t t-set="valor_mo" t-value="0"/>
                                     <tr t-foreach="o.order_line" t-as="l">
                                         <td class="art-col1">
+                                         <span t-field="l.sequence2"/>
+                                        </td>
+                                        <td class="art-col2">
                                               <span t-field="l.product_id.image_small" t-field-options='{"widget": "image"}' class="Your_custom_class"/>
                                         </td>
                                         <td class="text-center">
@@ -325,10 +333,11 @@
                                         <td class="art-col2"></td>
                                         <td class="art-col3"></td>
                                         <td class="art-col4"></td>
-                                        <td class="art-col5">
+                                        <td class="art-col5"></td>
+                                        <td class="art-col6">
                                             <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
                                         </td>
-                                        <td class="art-col6">
+                                        <td class="art-col7">
                                              <span t-esc="'{0:,.0f}'.format(int(valor_mo)).replace(',', '.')"></span>
                                          </td>
                                     </table>