Odoo Help


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.


One2many relation in Product

Diego Sucaria
on 2/26/14, 1:00 AM 749 views


This is a basic question, I am a PHP and MySQL programmer and this is new to me! I will appreciate any answer!

So, I've added a custom field (and view) called x_currency_id (many2one) to product.product. It works OK!! I can set a custom currency for each product.

Now, in the BOM model.... I want to show each product currency from the field I previusly added, but I can't get the relation to work...

I'm trying to add the field like this:

name-> x_product_currency
type-> one2many
Object Relationship -> res.currency
Field Relationship -> product_id.x_product_id

I have tried different setups, but none of them worked so far!

I appreciate any hint!! Thanks!

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)


Asked: 2/26/14, 1:00 AM
Seen: 749 times
Last updated: 3/16/15, 8:10 AM