From 2d286b28dd93448a0d5cfe1e2cd0336aabe1e250 Mon Sep 17 00:00:00 2001 From: Giovanni Francesco Capalbo Date: Thu, 15 Jan 2026 16:35:46 +0100 Subject: [PATCH] [ADD] extra filter to visualize all attachments --- oca_custom/README.rst | 16 ++++++++-------- oca_custom/__manifest__.py | 7 +++++-- oca_custom/views/document_knowledge.xml | 22 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 oca_custom/views/document_knowledge.xml diff --git a/oca_custom/README.rst b/oca_custom/README.rst index fe39545..db140b3 100644 --- a/oca_custom/README.rst +++ b/oca_custom/README.rst @@ -57,18 +57,18 @@ Authors Contributors ------------ -- Sylvain LE GAL (https://twitter.com/legalsylvain) +- Sylvain LE GAL (https://twitter.com/legalsylvain) -- Benoit GUILLOT (benoit.guillot@akretion.com) +- Benoit GUILLOT (benoit.guillot@akretion.com) -- Stéphane Bidoul (stephane.bidoul@acsone.eu) +- Stéphane Bidoul (stephane.bidoul@acsone.eu) -- `Tecnativa `__: +- `Tecnativa `__: - - Vicent Cubells - - Cristina Martin R. - - Carlos Roca - - Ernesto Tejeda + - Vicent Cubells + - Cristina Martin R. + - Carlos Roca + - Ernesto Tejeda Maintainers ----------- diff --git a/oca_custom/__manifest__.py b/oca_custom/__manifest__.py index 01ef24f..9eb2174 100644 --- a/oca_custom/__manifest__.py +++ b/oca_custom/__manifest__.py @@ -9,7 +9,10 @@ "website": "https://github.com/OCA/oca-custom", "author": "GRAP, Akretion, Odoo Community Association (OCA)", "license": "AGPL-3", - "depends": ["github_connector"], - "data": ["views/res_partner.xml"], + "depends": ["github_connector", "document_knowledge"], + "data": [ + "views/res_partner.xml", + "views/document_knowledge.xml", + ], "installable": True, } diff --git a/oca_custom/views/document_knowledge.xml b/oca_custom/views/document_knowledge.xml new file mode 100644 index 0000000..49eeb55 --- /dev/null +++ b/oca_custom/views/document_knowledge.xml @@ -0,0 +1,22 @@ + + + + ir_attachments_view_all + ir.attachment + + + + + [ + ('res_model', 'not like', 'ir.%'), + ('res_model', '!=', False), + ('id', '!=', 0), + ] + + + + +