Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5159 Visninger

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
Kassér
Forfatter Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jan. 24
2216
1
dec. 22
3387
2
aug. 21
3049
1
aug. 21
2603
4
dec. 23
11797