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

I'm trying to filter a view 


I have a system of class like this :

class GrandParent(models.Model):
    [...]
class Parent(models.Model):
    grand_dad_id=fields.Many2One('GrandParent')
    children_ids=fields.One2Many('Child)
    [...]
class Child(models.Model):
     dad_id=fields.Many2One('Parent')
     [...]

And when cliking on a grandParent kanban card I would like to display his "family" : his grand children (class child) grouped by parent
I don't know how to acess the "grand_dad" property.
I tried something like :
<record id="view_child_search" model="ir.ui.view">
[...]
<search string="User Stories">
<!-- <field name="dad_id.grand_dad_id"/> -->
[...]
</record>
With in the action on the grand_parent card :
{'search_default_parent':active_id}

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
6885
Add a filter to an existing tree view แก้ไขแล้ว
1
มี.ค. 15
18761
4
มิ.ย. 24
8744
1
ธ.ค. 23
7574
3
ม.ค. 24
16376