Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

TypeError: 'Undefined' object is not callable

By
Mohammed Khamis
on 12/21/14, 4:59 AM 483 views

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

0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 12/22/14, 12:34 AM

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,
        })

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/21/14, 4:59 AM
Seen: 483 times
Last updated: 3/16/15, 8:10 AM