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 to get current record for report inside function

By
gpkarthick
on 6/3/13, 2:50 AM 1,479 views

how to get current record inside function for the report I have a invoice.py and invoice.rml file inside account --> report-->files here i have a function in invoice.py def get_name(self,):--> print number,date_invoice,"print the invoice number and date_invoice" what are the argument i need to pass and i need to get current record inside function how to get it

0
Dharmesh Rathod
On 6/3/13, 3:41 AM

Hi,

You can do like this :

invoice = self.pool.get('account.invoice').browse(self.cr, self.uid, self.ids)

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

what are the arg i need to parse in get_name( )

gpkarthick
on 6/3/13, 7:20 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

0 follower(s)

Stats

Asked: 6/3/13, 2:50 AM
Seen: 1479 times
Last updated: 3/16/15, 8:10 AM