diff --git a/dms_partner_attachment_link/models/res_partner.py b/dms_partner_attachment_link/models/res_partner.py index e9aa5842a..2a46b0279 100644 --- a/dms_partner_attachment_link/models/res_partner.py +++ b/dms_partner_attachment_link/models/res_partner.py @@ -102,6 +102,9 @@ def action_open_dms_attachments(self): action = self.env.ref("dms.action_dms_file").read()[0] action.update( { + "context": { + "create": 0, + }, "domain": [ ("id", "in", self.dms_file_ids.ids), ], @@ -109,6 +112,10 @@ def action_open_dms_attachments(self): "dms_partner_attachment_link." "view_dms_file_kanban_inherit_partner_link" ).id, + "tree_view_ref": self.env.ref( + "dms_partner_attachment_link." + "view_dms_file_tree_inherit_partner_link" + ).id, } ) return action diff --git a/dms_partner_attachment_link/views/dms_file_views.xml b/dms_partner_attachment_link/views/dms_file_views.xml index fb37e4731..98e608bb5 100644 --- a/dms_partner_attachment_link/views/dms_file_views.xml +++ b/dms_partner_attachment_link/views/dms_file_views.xml @@ -8,6 +8,7 @@ primary + o_kanban_small_column align-content-start @@ -16,4 +17,15 @@ + + res.partner.view.tree.inherit + res.partner + + + + + + + +