Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5492 มุมมอง


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.