Odoo Help


how to get current record for report inside function

on 6/3/13, 2:50 AM 2,266 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

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


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( )

on 6/3/13, 7:20 AM

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


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