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

How i access payment_term.line in custom reports

By
kartik
on 10/8/15, 8:35 AM 324 views

hi  iused odoo 8.0 i created custom invoice report in odoo

 i access payment_term.id and payment_term.note

but i want to access all values of payment term means payment_term.line with all values in custom invoice report

i add four lines for
 

Computation  Amount To Pay  Number of Days  Day of the Month

Percent          0.250000             15                          0

Percent          0.250000             15                          0

Percent          0.250000             15                          0

Percent          0.250000             15                           0

now i want to acccess all values of payment term in custom invoice reports

same as invoice line and all fields of invoice

how can i get ,

Thanks in advanced!!!

1

zbik

--zbik--
5976
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 10/8/15, 2:21 PM

Try like this:

                    <t t-foreach="o.payment_term.line_ids" t-as="pl">
<span t-field="pl.value"/>
<span t-field="pl.value_amount"/>
<span t-field="pl.days"/>
<span t-field="pl.days2"/>
<br/>
</t>

thanks a lot it works for me

kartik
on 10/9/15, 12:07 AM

thanks a lot it works for me

kartik
on 10/9/15, 12:07 AM

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: 10/8/15, 8:35 AM
Seen: 324 times
Last updated: 10/9/15, 12:06 AM