コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
7019 ビュー

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 ?

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 16
4923
6
8月 16
28522
1
7月 16
5138
6
11月 15
5406
1
3月 15
3429