|
@@ -2,13 +2,13 @@ from openerp import api, models
|
|
|
import datetime
|
|
|
from num2words import num2words
|
|
|
|
|
|
-class report_notacredito_2ca(models.AbstractModel):
|
|
|
- _name = 'report.factura_venta_2ca.report_notacredito_2ca'
|
|
|
+class report_notacredito_bioelectric(models.AbstractModel):
|
|
|
+ _name = 'report.factura_venta_bioelectric.report_notacredito_bioelectric'
|
|
|
|
|
|
@api.multi
|
|
|
def render_html(self, data=None):
|
|
|
report_obj = self.env['report']
|
|
|
- report = report_obj._get_report_from_name('factura_venta_2ca.report_notacredito_2ca')
|
|
|
+ report = report_obj._get_report_from_name('factura_venta_bioelectric.report_notacredito_bioelectric')
|
|
|
docargs = {
|
|
|
'doc_ids': self._ids,
|
|
|
'doc_model': report.model,
|
|
@@ -16,7 +16,7 @@ class report_notacredito_2ca(models.AbstractModel):
|
|
|
'convertir':self.convertir,
|
|
|
'calcular_precio':self.calcular_precio,
|
|
|
}
|
|
|
- return report_obj.render('factura_venta_2ca.report_notacredito_2ca', docargs)
|
|
|
+ return report_obj.render('factura_venta_bioelectric.report_notacredito_bioelectric', docargs)
|
|
|
|
|
|
def convertir(self,nro,moneda):
|
|
|
letra = num2words(nro,lang="es")
|