Odoo Help


field type for customer stock code field (unique customer stock code/customer)?

Luke Branch
on 7/8/14, 4:21 AM 1,231 views

I'm looking to have customer's stock codes list next to our own stock codes on our purchase orders, invoices, quotations and other documents with order lines. What I would like to achieve is a unique set of stock codes for each customer that correspond to our own.

I believe the field type I should use for this is many2many or one2many, however I am unsure of how to relate customer stock code field to the product and the customer.

Any input on this would be appreciated.


I have figured out a (hack) workaround for adding a customer stock code for a specified number of customers by using t-if statements and custom fields. If anyone is interested in this please comment below and i'll make it available to the public on my github profile.

Luke Branch
on 11/27/14, 3:04 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: 7/8/14, 4:21 AM
Seen: 1231 times
Last updated: 3/16/15, 8:10 AM