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
4180 Widoki

Hello every body,

I trying to call function in mako file to create report with webkit but when I call function from python fill in mako this message appeare for me TypeError: 'Undefined' object is not callable so I will be thankful alot if any one help me

thanks alot

Awatar
Odrzuć
Najlepsza odpowiedź

In mako, call the function %
                %for l in get_lines(o.order_line):
OR 
            <% lines = get_lines(o.order_line)

In py file, 

class sale_order_report(report_sxw.rml_parse):
    def __init__(self, cr, uid, name, context):
        super(grid_report, self).__init__(cr, uid, name, context=context)
        self.localcontext.update({
            'time': time,
            'get_lines': self._get_lines,
        })

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
paź 16
31006
1
wrz 15
3724
1
cze 15
707
0
kwi 15
535
2
kwi 15
692