Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5088 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 24
2108
1
gru 22
3315
2
sie 21
2973
1
sie 21
2513
4
gru 23
11720