Odoo Help

0

How can I display a field from one model in form view of another model ?

By
dridi
on 8/20/16, 1:15 PM 513 views

Hi, 

I need to display a res.company custom field in sale_view.xml, how can i do that?

thanks

3

Ray Carnes

--Ray Carnes--
16009
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 8/20/16, 2:05 PM

One way is to create a new field on the sale.order model that relates to the field on res.company you want to see.  As long as there is already a field on the sale.order model that links to res.company, this is possible.  The field that does this is company_id.


1. Settings --> Technical --> Database Structure --> Models

2. Find and open the sale.order model for editing.

3. Click Add an Item to add a new field, like this:


4. Add the new field to your XML, and see it in the Sale Order form view:


0
dridi
On 8/20/16, 3:13 PM

Thanks a lot @Ray it work, there is another way to do that? "out of curiosity"

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 platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/20/16, 1:15 PM
Seen: 513 times
Last updated: 8/20/16, 3:37 PM