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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
5654
Vues
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( )
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire