İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5083 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Oca 24
2104
1
Ara 22
3310
2
Ağu 21
2973
1
Ağu 21
2512
4
Ara 23
11718