Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
7006 Vizualizări

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

Imagine profil
Abandonează

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

Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 16
4918
6
aug. 16
28507
1
iul. 16
5133
6
nov. 15
5397
1
mar. 15
3426