Odoo Help


How to send a field value from res.partner to account.invoice?

on 4/22/16, 6:06 AM 617 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


i use odoo v 9 

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

thanks so so much very helpful

on 4/22/16, 9:27 AM
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

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

on 4/22/16, 7:54 AM

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.


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)


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