Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5086 Tampilan

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
Buang
Penulis Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 24
2108
1
Des 22
3315
2
Agu 21
2973
1
Agu 21
2513
4
Des 23
11720