Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
7001 Переглядів

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

Аватар
Відмінити

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

Автор

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

Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 16
4915
6
серп. 16
28503
1
лип. 16
5132
6
лист. 15
5394
1
бер. 15
3425