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
Jesse Rye
On 5/7/16, 1:06 AM

Update: my comment below this answer was intended for another post please disregard it. This answer should work just fine!
Example: Create a relationship between product.product to a new model named virtual_categories.

Hope this helps!

from openerp import fields

from openerp import models

class virtual_categories( models.Model ):         _name = "virtual.categories"         name = fields.Char( string = 'Virtual Category Name' )         virtual_category_id = fields.Many2one( 'product.product', string = 'Virtual Category' )

That is a solution but then causes the need to run a new call to the xmlrpc for every record which is not efficient. I was hoping I could use the search with in as it says it supports I thought.

Jesse Rye
on 5/7/16, 1:26 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: 5/6/16, 10:51 AM
Seen: 213 times
Last updated: 5/7/16, 1:06 AM