Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5084 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 24
2104
1
pro 22
3311
2
srp 21
2973
1
srp 21
2513
4
pro 23
11719