소스 검색

[BUG] correciones

Rodney Enciso Arias 7 년 전
부모
커밋
2fa88d8d63

+ 2 - 2
__openerp__.py

@@ -2,9 +2,9 @@
 {
     'name': "EIRU SET",
     'author': "Robert Gauto/Adrielso Kunert/Rodney Enciso Arias/Sebastian Penayo",
-    'category': 'Uncategorized',
+    'category': 'Reporte',
     'version': '0.1',
-    'depends': ['base','eiru_assets','company_set_information','invoice_credit'],
+    'depends': ['base','eiru_assets','company_set_information','invoice_credit','attachments_views'],
     'data': [
     'templates.xml',
     ],

+ 1 - 19
controllers.py

@@ -1,20 +1,2 @@
 # -*- coding: utf-8 -*-
-from openerp import http
-
-# class EiruReporting(http.Controller):
-#     @http.route('/eiru_reporting/eiru_reporting/', auth='public')
-#     def index(self, **kw):
-#         return "Hello, world"
-
-#     @http.route('/eiru_reporting/eiru_reporting/objects/', auth='public')
-#     def list(self, **kw):
-#         return http.request.render('eiru_reporting.listing', {
-#             'root': '/eiru_reporting/eiru_reporting',
-#             'objects': http.request.env['eiru_reporting.eiru_reporting'].search([]),
-#         })
-
-#     @http.route('/eiru_reporting/eiru_reporting/objects/<model("eiru_reporting.eiru_reporting"):obj>/', auth='public')
-#     def object(self, obj, **kw):
-#         return http.request.render('eiru_reporting.object', {
-#             'object': obj
-#         })
+from openerp import http

BIN
controllers.pyc


+ 1 - 6
models.py

@@ -1,8 +1,3 @@
 # -*- coding: utf-8 -*-
 
-from openerp import models, fields, api
-
-# class eiru_reporting(models.Model):
-#     _name = 'eiru_reporting.eiru_reporting'
-
-#     name = fields.Char()
+from openerp import models, fields, api

BIN
models.pyc


+ 0 - 3
static/src/js/custom.js

@@ -1,3 +0,0 @@
-$(document).ready(function(){
-	$('.materialboxed').materialbox();
-});

+ 0 - 10
static/src/js/reports/report_purchases.js

@@ -213,14 +213,6 @@ function report_purchases (reporting){
                 return item.id === attachment_ids;
             }).shift();
         },
-        // getAttachment : function(attachment_ids){
-        //     var self = this;
-        //     return _.map(_.filter(self.attachment,function(item){
-        //         return item.id === attachment_ids;
-        //     }),function(map){
-        //         return map.datas;
-        //     });
-        // },
 
         // Detalle del registro
         fect_generar: function(invoices){
@@ -298,7 +290,6 @@ function report_purchases (reporting){
                 adjunto = self.getAttachment(invoice.attachment_ids[0]);
                 imagen = _.flatten(adjunto);
 
-                // img = 'data:'+imagen[1]+'+;base64,'+imagen[5]+'';
                 if(adjunto == undefined){
                     icons = '<a class="" href="javascript:void(0)" title="Descarga no disponible"><i class="fa fa-file fa-lg" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;<a class="" href="javascript:void(0)" title="Vista previa no disponible"><i class="fa fa-eye-slash fa-lg" aria-hidden="true"></i></a>';
                 }else{
@@ -333,7 +324,6 @@ function report_purchases (reporting){
                     period_name : invoice.period_id[1],
                     attachment_ids : adjunto,
                     download_icon : icons,
-                    // miniatura : ' <a class="" href="'+img+'" data-lightbox="roadtrip"><img src="'+img+'" style="height:50px;width:50px;"></a>'
                 });
             });
             self.newInvoice = data;

+ 0 - 1
static/src/reports/report_purchases.xml

@@ -52,7 +52,6 @@
                         <th data-field="condicion_compra">Condición de Compra</th>
                         <th data-field="cantidad_cuotas">Cantidad de Cuotas</th>
                         <th data-field="download_icon" data-align="center">Documentos</th>
-                        <!-- <th data-field="miniatura" data-align="center">Miniatura</th> -->
                     </tr>
                 </thead>
             </table>

+ 0 - 3
static/src/xml/eiru_reporting.xml

@@ -3,9 +3,6 @@
 <template xml:space="preserve">
     <t t-name="EiruReporting">
         <t t-call="EiruReportingBase">
-            <!-- <header class="reporting_view_header">
-                <h2>Reportes</h2>
-            </header> -->
             <div class="oe_form_sheetbg">
                 <t t-call="EiruReportingCards" />
             </div>

+ 0 - 3
static/src/xml/eiru_reporting_cards.xml

@@ -4,9 +4,6 @@
     <t t-name="EiruReportingCards">
         <div class="oe_form_sheet oe_form_sheet_width">
             <div class="report_view">
-                <!-- <div class="reporting_page_header">
-                    <h1></h1>
-                </div> -->
                 <div class="report_group">
                     <t t-foreach="widget.reports" t-as="item">
                         <div class="report_item">