Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

how to inherit field value from one module to another module?

By
bhanukiran
on 11/16/15, 3:40 AM 688 views

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 ??

Drees Far
on 11/16/15, 4:11 AM

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

bhanukiran
on 11/16/15, 5:08 AM
0
Krupesh Laiya
On 12/19/15, 1:19 AM

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

0
Dr Obx
On 12/18/15, 4:29 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/16/15, 3:40 AM
Seen: 688 times
Last updated: 4/12/16, 1:20 AM