We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60ef30 commit 11027f8Copy full SHA for 11027f8
record_keeping_attachment/wizard/add_file_wizard.p.py
@@ -40,3 +40,7 @@ def save_button(self):
40
41
file = self.env['ir.attachment'].create(attachment_vals)
42
file.document_id.description = self.description
43
+
44
+ if not file.res_model and file.res_field and file.res_id == "0":
45
+ file.res_model = "rk.matter"
46
+ file.res_id = matter_id
record_keeping_attachment/wizard/add_file_wizard.py
0 commit comments