~dmesoluciones/+junk/corte_facturas

« back to all changes in this revision

Viewing changes to models/complete_sales_tecnika.py

  • Committer: alfonso-moreno
  • Date: 2018-01-08 20:33:50 UTC
  • Revision ID: alfonso.moreno@dmesoluciones.com-20180108203350-0ux5x8y78ux4t9z0
Se agrego una nueva validacion para un nuevo caracter raro

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
                                        x = 'Pulgadas'
111
111
                                elif x == u'‘':
112
112
                                        x = 'N'
 
113
                                elif x == u'Â':
 
114
                                        x = 'A'
113
115
                                nueva_cadena = nueva_cadena + x
114
116
                                #print"TTTTTTTTTTTTTTTT", nueva_cadena
115
117
                if nueva_cadena == '':
221
223
                                        if x<=18:
222
224
                                                line += ','
223
225
                                        x = x + 1
224
 
                                line = self.eSg(line) 
 
226
                                line = self.eSg(line)
225
227
                                csvsalida.write(line + '\n')
226
228
                                output += line + '\n'
227
229
                        csvsalida.close()
241
243
                'view_id':view_id,
242
244
                'type': 'ir.actions.act_window',
243
245
                        }
244
 
                else:
245
 
                        return self.pool.get('warning').info(cr, uid, title='Reports', message=_("there is no information with parameters provided."))
 
246
                #else:
 
247
                #       return self.pool.get('warning').info(cr, uid, title='Reports', message=_("there is no information with parameters provided."))
246
248
 
247
 
complete_sales_tecnika()
 
249
complete_sales_tecnika()
 
 
b'\\ No newline at end of file'