Преглед на файлове

[FIX] Corregido problema con la sequencia

Rodney Elpidio Enciso Arias преди 7 години
родител
ревизия
9c8b6d0640
променени са 4 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 1 0
      __openerp__.py
  2. BIN
      models/res_partner.pyc
  3. 1 2
      static/src/js/models.js
  4. 4 1
      static/src/xml/pos_receipt.xml

+ 1 - 0
__openerp__.py

@@ -9,6 +9,7 @@
     'depends': [
                 'base',
                 'point_of_sale',
+                'pos_sequence_ref_number',
                 ],
     "data": [
         "template.xml",

BIN
models/res_partner.pyc


+ 1 - 2
static/src/js/models.js

@@ -18,7 +18,6 @@ function pos_company_models(instance, module){
         loaded: function(self, legal_journal){
             self.legal_journal = legal_journal;
         },
-    });  
-
+    });
 };
 

+ 4 - 1
static/src/xml/pos_receipt.xml

@@ -28,9 +28,12 @@
             <br/>
             Fecha: Fin de vigencia <t t-esc="new Date(widget.pos.legal_journal[0].end_of_validity).toString(Date.CultureInfo.formatPatterns.shortDate)"/>
             <br/>
+            <t t-esc="order.get('name')"/>
+            <br/>
             <br/>
             <div class="pos-center-align">
-                <t t-esc="order.get('name')"/>
+                <!-- <t t-esc="order.pos.pos_order_sequence.prefix+'0'+(order.pos.pos_order_sequence.number_next_actual-1)"/> -->
+                Factura N° <t t-esc="order.get('sequence_ref')"/>
             </div>
             <p>--------------------------------------------</p>
             Fecha: <t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +