Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
7024 Visualizzazioni

I want to inherit the value of amount_total from accounts module to my custom module. amount_total is a field in accounts module, so how can I retrieve it's value in my custom module. I already have set depends on account in my __openerp__ file. But still in eclipse it says as undefined variable:amount_total

custom.py ,

class account_invoice(models.Model):

    _inherit = "account.invoice"  

    print amount_total

Avatar
Abbandona

hello my friend, please tell me at what moment do you want to get the amount_total ??

Autore

I want to retreive amount_total to convert it to word format in my custom module

Risposta migliore

odoo have it's own method i.e. amout_to_text for more details please refer below link

or you can refer this linkAmount to text

Avatar
Abbandona
Risposta migliore

How about copy value into a new field then convert into the string ?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
dic 16
4927
6
ago 16
28530
1
lug 16
5143
6
nov 15
5413
1
mar 15
3431