Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5858 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć

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