Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5092 Vistas

What does this mean??

class order(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
    super(order, self).__init__(cr, uid, name, context=context)   
    self.line_no = 0
    self.localcontext.update({
    'time': time,
    #'line_no': self.line_no,
    #'blank_line': self.blank_line
    })

def line_no():
    self.line_no = self.line_no +1
    return self.line_no
def blank_line(nlines):
    res = ""
    for i in range(nlines - self.line_no):
      res = res + '\n'
      return res

I'm trying to add these function.

Avatar
Descartar
Autor Mejor respuesta

Because it was having indentation error. and i resolved by giving correct spaces and new line.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 24
2111
1
dic 22
3315
2
ago 21
2974
1
ago 21
2515
4
dic 23
11723