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.

0

How to show a text field from another model in a view

By
Narender
on 9/17/15, 5:23 AM 422 views

Hi,

Can someone help me with this please.

I would like to create a text field in a model (as part of a module's configuration) and use it as a readonly field in another view, without creating another field in view's relevant model.

for example:

Creating a text field in hr.holidays.status model and using it in the hr.holidays.view view

Regards,

Narender



Your example is not clear for me, but I think you can use a function field.

Tarek Mohamed Ibrahim
on 9/20/15, 8:52 AM

In "hr.holidays.view" model you use _inherit = ['hr.holidays.status']

VirbhadraSinh Gohil (vgo)
on 9/21/15, 1:09 AM

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

2 follower(s)

Stats

Asked: 9/17/15, 5:23 AM
Seen: 422 times
Last updated: 9/21/15, 1:09 AM