Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5859 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit

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>

Autor

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