Odoo Help

0

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

By
kais dkhili
on 6/6/14, 12:56 PM 942 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()

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/6/14, 12:56 PM
Seen: 942 times
Last updated: 3/16/15, 8:10 AM