تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1379 أدوات العرض

Hey All,

I'm working on a dynamic tree view that allows users to show or hide fields. However, I'm struggling with resetting the tree view to its default field visibility each time a user comes back to it as odoo storing that user specific setting in local cookies. 


below method called from ir.actions.server

def action_ls_property_structures_list(self):

​view_id = self.env.ref("ls_property.ls_property_list_structures").id

​# Render the tree view

​return { "name": "Compare Structures",

​"type": "ir.actions.act_window",

​"res_model": "ls.property",

​"view_mode": "tree",

​"view_id": view_id,

​"target": "main",

​"domain": [("id", "in", active_ids)],

​}

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 23
3747
0
مايو 23
117
0
يناير 24
975
0
سبتمبر 23
1500
1
مايو 23
2418