跳至內容
選單
此問題已被標幟
1 回覆
5168 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 24
2223
1
12月 22
3390
2
8月 21
3050
1
8月 21
2610
4
12月 23
11819