Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions oca_custom/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://www.tecnativa.com>`__:
- `Tecnativa <https://www.tecnativa.com>`__:

- Vicent Cubells
- Cristina Martin R.
- Carlos Roca
- Ernesto Tejeda
- Vicent Cubells
- Cristina Martin R.
- Carlos Roca
- Ernesto Tejeda

Maintainers
-----------
Expand Down
7 changes: 5 additions & 2 deletions oca_custom/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
22 changes: 22 additions & 0 deletions oca_custom/views/document_knowledge.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ir_attachments_view_all" model="ir.ui.view">
<field name="name">ir_attachments_view_all</field>
<field name="model">ir.attachment</field>
<field
name="inherit_id"
ref="document_knowledge.ir_attachment_view_user_documents"
/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='user_documents']" position="attributes">
<attribute name="domain">
[
('res_model', 'not like', 'ir.%'),
('res_model', '!=', False),
('id', '!=', 0),
]
</attribute>
</xpath>
</field>
</record>
</odoo>