Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5131 Переглядів

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.

Аватар
Відмінити
Автор Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 24
2182
1
груд. 22
3373
2
серп. 21
3042
1
серп. 21
2586
4
груд. 23
11779