Skip to Content
मेन्यू
This question has been flagged
2 Replies
5855 Views

Hi,

I create, actually, a custom invoice but I have a problem :/

My invoice is create and I think it's perfect but when I add this line : repeatIn(o.move_lines,'line') between one tab : description / Tax / Quantity / Unit Price / Price and this tab : different element.

Without "repeatIn(o.move_lines,'line')", my invoice is good but I haven't all lines in my invoice. With "repeatIn(o.move_lines,'line')" I have the error in object.

It's possible to have an idea of my error?

Thanks all

Avatar
Discard
Best Answer

Hi,

The error because there is no any 'o' define in your code or 'o' define out of scope. Check your code like <para>[[repeatIn(objects,'o')]]</para> defined with object 'o'....

Thanks...

Avatar
Discard
Author Best Answer

I put this line in first.

<para style="Table Contents">[[ repeatIn(objects,'o') ]][[ setLang(o.partner_id.lang) ]]</para>

Is it correct?

I work with openoffice. My problem wasn't resolve :/

Sorry.

Avatar
Discard

Hello, Can you please try this one.... <para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para> <para style="terp_default_8">[[ setLang(o.partner_id.lang) ]]</para>

Author

I don"t know how change this with openoffice :/

hey , you need only to define in top like : [[ repeatIn(objects,'o') ]] [[ setLang(o.partner_id.lang) ]] ... You can refer :/account/report/account_print_overdue.rml and related sxw file....