Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
7020 Widoki

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 16
4924
6
sie 16
28523
1
lip 16
5140
6
lis 15
5409
1
mar 15
3429