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

ERROR printing report OpenERP OpenOffice writer : name l is not defined?

By
kais dkhili
on 6/6/14, 12:56 PM 725 views

i want to print report with OpenERP and Open Office Writer: i try with this simple rml to test the origin of the error :

[[ repeatIn(objects,'l') ]]

[[ l.date_contrat ]]

[[ repeatIn(l.lst_termes,'lst_termes') ]]

[[ lst_termes.descriptionterme ]]

i dont know why the origin of the error : object l is not defined. please someone help me. i want to say tha this is the relation between contrat and terme

class contratcommercial(osv.osv):
    _name='contratcommercial'
    _inherit='contrat'
    _rec_name = 'titreContrat'
    _columns = {
        'id_partenaire_commercial':fields.many2one('commercial','Commercial'),
        'lst_termes':fields.one2many('terme','id_contrat_comm','Liste des termes'),
    }
contratcommercial()

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: 6/6/14, 12:56 PM
Seen: 725 times
Last updated: 3/16/15, 8:10 AM