From 9f8ca75e57f809a8fbe9936f87b599b4fe6e9c56 Mon Sep 17 00:00:00 2001 From: Leonardo Donelli Date: Fri, 3 Feb 2017 10:24:04 +0100 Subject: [PATCH] Make document type smart button open its attachments --- document_type/README.rst | 5 +++++ document_type/views/attachment.xml | 2 +- document_type/views/document_type.xml | 10 +++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/document_type/README.rst b/document_type/README.rst index 2225547c..5d94f66b 100644 --- a/document_type/README.rst +++ b/document_type/README.rst @@ -51,6 +51,11 @@ Contributors * Leonardo Donelli @ MONK Software (leonardo.donelli@monksoftware.it) +Acknowledgements +---------------- + +* Thanks to gingitsune for showing me a simple way to open a 'Save and Close' dialog + Maintainer ---------- diff --git a/document_type/views/attachment.xml b/document_type/views/attachment.xml index 714ce3f0..7253ba9c 100644 --- a/document_type/views/attachment.xml +++ b/document_type/views/attachment.xml @@ -22,7 +22,7 @@ - + Attachment search view: add document type filter and groupby ir.attachment diff --git a/document_type/views/document_type.xml b/document_type/views/document_type.xml index 0a7822fa..29634071 100644 --- a/document_type/views/document_type.xml +++ b/document_type/views/document_type.xml @@ -7,6 +7,14 @@ tree,form + + Documents + ir.attachment + form + tree,form + {'search_default_document_type_id': [active_id], 'default_document_type_id': active_id} + + Document types list view document.type @@ -14,7 +22,7 @@
-