Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
7015 มุมมอง

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
4921
6
ส.ค. 16
28516
1
ก.ค. 16
5134
Unable to start odoo 8 from eclipse แก้ไขแล้ว
6
พ.ย. 15
5403
1
มี.ค. 15
3427