콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
7008 화면

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
4918
6
8월 16
28514
1
7월 16
5133
6
11월 15
5400
1
3월 15
3426