Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5106 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 24
2146
1
dic 22
3365
2
ago 21
3023
1
ago 21
2564
4
dic 23
11768