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

For example, I want to filter all phonecall activities with partner and user linked with current login user.

where x_partner_id is the partner related to the current user uid. In odoo recent version (13/14) it has already user as variable where I can get user.partner_id.id but in odoo8 how can I achieve this?

Thanks.

<record id="dincelcrm_myfollowups_action" model="ir.actions.act_window" >
	<field name="name">My Follow-Ups</field>
	<field name="res_model">crm.phonecall</field>
	<field name="view_type">form</field>
	<field name="view_mode">calendar,tree,form</field>
	<field name="domain">['&amp;',('state','=','open'),'|',('user_id','=',uid),('x_attendee_ids','in',x_partner_id)]</field>
	<field name="search_view_id" ref="view_crm_case_allphonecalls_filter"/>
</record>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can follow this: https://youtu.be/XGqXEL2qQmE

Hope it helps,

Thanks

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

You can use server action instead of act_window

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 16
10126
Many2many domain filter not working แก้ไขแล้ว
1
ม.ค. 22
5578
0
ก.ค. 19
2855
0
ก.ค. 15
4416
2
ต.ค. 22
26042