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 send a field value from res.partner to account.invoice?

By
medmars
on 4/22/16, 6:06 AM 342 views

Hi everybody 

I have created a custom field ( x_name )  with type char in the account.invoice and i want get the value from another existed field  in res.partner

for now and don't now how to make  a relation between existed field and my new custom field


http://imgur.com/GNM2t1u

i use odoo v 9 

medmars
on 4/22/16, 6:24 AM
1

Ray Carnes

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

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

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. 

Ray Carnes
On 4/22/16, 7:50 AM

thanks so so much very helpful

medmars
on 4/22/16, 9:27 AM
1
Jorge Barcelo Cortes
On 4/22/16, 6:33 AM

The easier way is to set the relation in the declaration of your field.

It should be as follows, in your module.py:

new_field = fields.Char(string='...', related="partner_id.partner_field_name")

thanks for the reply, but is there another way to make this from odoo ( developper mode ) without enter to the module .py because i'm using lunix and i dont know how and were to find such as files as you said ( hh and this is also another probleme ) thanks

medmars
on 4/22/16, 6:41 AM

I found module.py but really I cant understood where to add your code plz can you make for me some catch of screen I will be very grateful i'm new on odoo plateforme, and i hope find the support here thanks so much

medmars
on 4/22/16, 7:54 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

1 follower(s)

Stats

Asked: 4/22/16, 6:06 AM
Seen: 342 times
Last updated: 4/22/16, 9:27 AM