mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-23 13:12:04 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
51
odoo-bringout-oca-ocb-attachment_indexation/README.md
Normal file
51
odoo-bringout-oca-ocb-attachment_indexation/README.md
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# Attachments List and Document Indexation
|
||||
|
||||
|
||||
Attachments list and document indexation
|
||||
========================================
|
||||
* Show attachment on the top of the forms
|
||||
* Document Indexation: odt, pdf, xlsx, docx
|
||||
|
||||
The `pdfminer.six` Python library has to be installed in order to index PDF files
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-attachment_indexation
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- web
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Attachments List and Document Indexation
|
||||
- **Version**: 2.1
|
||||
- **Category**: Hidden/Tools
|
||||
- **License**: LGPL-3
|
||||
- **Installable**: True
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `attachment_indexation`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original LGPL-3 license from the upstream Odoo project.
|
||||
|
||||
## Documentation
|
||||
|
||||
- Overview: doc/OVERVIEW.md
|
||||
- Architecture: doc/ARCHITECTURE.md
|
||||
- Models: doc/MODELS.md
|
||||
- Controllers: doc/CONTROLLERS.md
|
||||
- Wizards: doc/WIZARDS.md
|
||||
- Install: doc/INSTALL.md
|
||||
- Usage: doc/USAGE.md
|
||||
- Configuration: doc/CONFIGURATION.md
|
||||
- Dependencies: doc/DEPENDENCIES.md
|
||||
- Troubleshooting: doc/TROUBLESHOOTING.md
|
||||
- FAQ: doc/FAQ.md
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
{
|
||||
'name': 'Attachments List and Document Indexation',
|
||||
'version': '2.1',
|
||||
'category': 'Hidden/Tools',
|
||||
'description': """
|
||||
Attachments list and document indexation
|
||||
========================================
|
||||
* Show attachment on the top of the forms
|
||||
* Document Indexation: odt, pdf, xlsx, docx
|
||||
|
||||
The `pdfminer.six` Python library has to be installed in order to index PDF files
|
||||
""",
|
||||
'depends': ['web'],
|
||||
'installable': True,
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Arabic (https://www.transifex.com/odoo/teams/41243/ar/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: ar\n"
|
||||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "مرفق"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-06 13:31+0000\n"
|
||||
"PO-Revision-Date: 2024-02-06 13:31+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-06 13:31+0000\n"
|
||||
"PO-Revision-Date: 2024-02-06 13:31+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Prilog"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# trendspotter <j.podhorecky@volny.cz>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: trendspotter <j.podhorecky@volny.cz>, 2019\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/odoo/teams/41243/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Příloha"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Sanne Kristensen <sanne@vkdata.dk>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Sanne Kristensen <sanne@vkdata.dk>, 2019\n"
|
||||
"Language-Team: Danish (https://www.transifex.com/odoo/teams/41243/da/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: da\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Vedhæftning"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Dateianhang"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Adjunto"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Pièce jointe"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# ExcaliberX <excaliberx@gmail.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: ExcaliberX <excaliberx@gmail.com>, 2019\n"
|
||||
"Language-Team: Hebrew (https://www.transifex.com/odoo/teams/41243/he/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: he\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "קובץ מצורף"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Croatian (https://www.transifex.com/odoo/teams/41243/hr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: hr\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Prilog"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/odoo/teams/41243/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Melléklet"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Paolo Valier, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Paolo Valier, 2019\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/odoo/teams/41243/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Allegato"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Language-Team: Luxembourgish (https://www.transifex.com/odoo/teams/41243/lb/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: lb\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Linas Versada <linaskrisiukenas@gmail.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Linas Versada <linaskrisiukenas@gmail.com>, 2019\n"
|
||||
"Language-Team: Lithuanian (https://www.transifex.com/odoo/teams/41243/lt/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: lt\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Prisegtukas"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Mongolian (https://www.transifex.com/odoo/teams/41243/mn/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: mn\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Хавсралт"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Norwegian Bokmål (https://www.transifex.com/odoo/teams/41243/nb/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: nb\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Vedlegg"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: nl\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Bijlage"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Polish (https://www.transifex.com/odoo/teams/41243/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Załącznik"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Language-Team: Portuguese (https://www.transifex.com/odoo/teams/41243/pt/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: pt\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/odoo/teams/41243/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Anexo"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Language-Team: Romanian (https://www.transifex.com/odoo/teams/41243/ro/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: ro\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Russian (https://www.transifex.com/odoo/teams/41243/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: ru\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Приложение"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Turkish (https://www.transifex.com/odoo/teams/41243/tr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: tr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Ek"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Alina Lisnenko <alinasemeniuk1@gmail.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Alina Lisnenko <alinasemeniuk1@gmail.com>, 2019\n"
|
||||
"Language-Team: Ukrainian (https://www.transifex.com/odoo/teams/41243/uk/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: uk\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Прикріплення"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Nancy Momoland <thanhnguyen.icsc@gmail.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Nancy Momoland <thanhnguyen.icsc@gmail.com>, 2019\n"
|
||||
"Language-Team: Vietnamese (https://www.transifex.com/odoo/teams/41243/vi/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: vi\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "Đính kèm"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: zh_CN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "附件"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * attachment_indexation
|
||||
#
|
||||
# Translators:
|
||||
# Martin Trigaux, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server saas~12.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-03-20 14:18+0000\n"
|
||||
"PO-Revision-Date: 2019-08-26 09:09+0000\n"
|
||||
"Last-Translator: Martin Trigaux, 2019\n"
|
||||
"Language-Team: Chinese (Taiwan) (https://www.transifex.com/odoo/teams/41243/zh_TW/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: zh_TW\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#. module: attachment_indexation
|
||||
#: model:ir.model,name:attachment_indexation.model_ir_attachment
|
||||
msgid "Attachment"
|
||||
msgstr "附件"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import ir_attachment
|
||||
|
|
@ -0,0 +1,146 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
import io
|
||||
import logging
|
||||
import xml.dom.minidom
|
||||
import zipfile
|
||||
|
||||
from odoo import api, models
|
||||
from odoo.tools.lru import LRU
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
|
||||
from pdfminer.converter import TextConverter
|
||||
from pdfminer.pdfpage import PDFPage
|
||||
except ImportError:
|
||||
PDFResourceManager = PDFPageInterpreter = TextConverter = PDFPage = None
|
||||
_logger.warning("Attachment indexation of PDF documents is unavailable because the 'pdfminer' Python library cannot be found on the system. "
|
||||
"You may install it from https://pypi.org/project/pdfminer.six/ (e.g. `pip3 install pdfminer.six`)")
|
||||
|
||||
FTYPES = ['docx', 'pptx', 'xlsx', 'opendoc', 'pdf']
|
||||
|
||||
|
||||
index_content_cache = LRU(1)
|
||||
|
||||
def textToString(element):
|
||||
buff = u""
|
||||
for node in element.childNodes:
|
||||
if node.nodeType == xml.dom.Node.TEXT_NODE:
|
||||
buff += node.nodeValue
|
||||
elif node.nodeType == xml.dom.Node.ELEMENT_NODE:
|
||||
buff += textToString(node)
|
||||
return buff
|
||||
|
||||
|
||||
class IrAttachment(models.Model):
|
||||
_inherit = 'ir.attachment'
|
||||
|
||||
def _index_docx(self, bin_data):
|
||||
'''Index Microsoft .docx documents'''
|
||||
buf = u""
|
||||
f = io.BytesIO(bin_data)
|
||||
if zipfile.is_zipfile(f):
|
||||
try:
|
||||
zf = zipfile.ZipFile(f)
|
||||
content = xml.dom.minidom.parseString(zf.read("word/document.xml"))
|
||||
for val in ["w:p", "w:h", "text:list"]:
|
||||
for element in content.getElementsByTagName(val):
|
||||
buf += textToString(element) + "\n"
|
||||
except Exception:
|
||||
pass
|
||||
return buf
|
||||
|
||||
def _index_pptx(self, bin_data):
|
||||
'''Index Microsoft .pptx documents'''
|
||||
|
||||
buf = u""
|
||||
f = io.BytesIO(bin_data)
|
||||
if zipfile.is_zipfile(f):
|
||||
try:
|
||||
zf = zipfile.ZipFile(f)
|
||||
zf_filelist = [x for x in zf.namelist() if x.startswith('ppt/slides/slide')]
|
||||
for i in range(1, len(zf_filelist) + 1):
|
||||
content = xml.dom.minidom.parseString(zf.read('ppt/slides/slide%s.xml' % i))
|
||||
for val in ["a:t"]:
|
||||
for element in content.getElementsByTagName(val):
|
||||
buf += textToString(element) + "\n"
|
||||
except Exception:
|
||||
pass
|
||||
return buf
|
||||
|
||||
def _index_xlsx(self, bin_data):
|
||||
'''Index Microsoft .xlsx documents'''
|
||||
|
||||
buf = u""
|
||||
f = io.BytesIO(bin_data)
|
||||
if zipfile.is_zipfile(f):
|
||||
try:
|
||||
zf = zipfile.ZipFile(f)
|
||||
content = xml.dom.minidom.parseString(zf.read("xl/sharedStrings.xml"))
|
||||
for val in ["t"]:
|
||||
for element in content.getElementsByTagName(val):
|
||||
buf += textToString(element) + "\n"
|
||||
except Exception:
|
||||
pass
|
||||
return buf
|
||||
|
||||
def _index_opendoc(self, bin_data):
|
||||
'''Index OpenDocument documents (.odt, .ods...)'''
|
||||
|
||||
buf = u""
|
||||
f = io.BytesIO(bin_data)
|
||||
if zipfile.is_zipfile(f):
|
||||
try:
|
||||
zf = zipfile.ZipFile(f)
|
||||
content = xml.dom.minidom.parseString(zf.read("content.xml"))
|
||||
for val in ["text:p", "text:h", "text:list"]:
|
||||
for element in content.getElementsByTagName(val):
|
||||
buf += textToString(element) + "\n"
|
||||
except Exception:
|
||||
pass
|
||||
return buf
|
||||
|
||||
def _index_pdf(self, bin_data):
|
||||
'''Index PDF documents'''
|
||||
if PDFResourceManager is None:
|
||||
return
|
||||
buf = u""
|
||||
if bin_data.startswith(b'%PDF-'):
|
||||
f = io.BytesIO(bin_data)
|
||||
try:
|
||||
resource_manager = PDFResourceManager()
|
||||
with io.StringIO() as content, TextConverter(resource_manager, content) as device:
|
||||
logging.getLogger("pdfminer").setLevel(logging.CRITICAL)
|
||||
interpreter = PDFPageInterpreter(resource_manager, device)
|
||||
|
||||
for page in PDFPage.get_pages(f):
|
||||
interpreter.process_page(page)
|
||||
|
||||
buf = content.getvalue()
|
||||
except Exception:
|
||||
pass
|
||||
return buf
|
||||
|
||||
@api.model
|
||||
def _index(self, bin_data, mimetype, checksum=None):
|
||||
if checksum:
|
||||
cached_content = index_content_cache.get(checksum)
|
||||
if cached_content:
|
||||
return cached_content
|
||||
res = False
|
||||
for ftype in FTYPES:
|
||||
buf = getattr(self, '_index_%s' % ftype)(bin_data)
|
||||
if buf:
|
||||
res = buf.replace('\x00', '')
|
||||
break
|
||||
|
||||
res = res or super(IrAttachment, self)._index(bin_data, mimetype, checksum=checksum)
|
||||
if checksum:
|
||||
index_content_cache[checksum] = res
|
||||
return res
|
||||
|
||||
def copy(self, default=None):
|
||||
index_content_cache[self.checksum] = self.index_content
|
||||
return super().copy(default=default)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_indexation
|
||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo.tests.common import TransactionCase, tagged
|
||||
from unittest import skipIf
|
||||
import os
|
||||
|
||||
directory = os.path.dirname(__file__)
|
||||
|
||||
try:
|
||||
from pdfminer.pdfinterp import PDFResourceManager
|
||||
except ImportError:
|
||||
PDFResourceManager = None
|
||||
|
||||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestCaseIndexation(TransactionCase):
|
||||
|
||||
@skipIf(PDFResourceManager is None, "pdfminer not installed")
|
||||
def test_attachment_pdf_indexation(self):
|
||||
with open(os.path.join(directory, 'files', 'test_content.pdf'), 'rb') as file:
|
||||
pdf = file.read()
|
||||
text = self.env['ir.attachment']._index(pdf, 'application/pdf')
|
||||
self.assertEqual(text, 'TestContent!!\x0c', 'the index content should be correct')
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph Attachment_indexation Module - attachment_indexation
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for attachment_indexation. Configure related models, access rights, and options as needed.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [web](../../odoo-bringout-oca-ocb-web)
|
||||
4
odoo-bringout-oca-ocb-attachment_indexation/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-attachment_indexation/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon attachment_indexation or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-attachment_indexation"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-attachment_indexation"
|
||||
```
|
||||
12
odoo-bringout-oca-ocb-attachment_indexation/doc/MODELS.md
Normal file
12
odoo-bringout-oca-ocb-attachment_indexation/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in attachment_indexation.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class ir_attachment
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: attachment_indexation. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon attachment_indexation
|
||||
- License: LGPL-3
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Security
|
||||
|
||||
This module does not define custom security rules or access controls beyond Odoo defaults.
|
||||
|
||||
Default Odoo security applies:
|
||||
- Base user access through standard groups
|
||||
- Model access inherited from dependencies
|
||||
- No custom row-level security rules
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-attachment_indexation/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-attachment_indexation/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon attachment_indexation
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
42
odoo-bringout-oca-ocb-attachment_indexation/pyproject.toml
Normal file
42
odoo-bringout-oca-ocb-attachment_indexation/pyproject.toml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-attachment_indexation"
|
||||
version = "16.0.0"
|
||||
description = "Attachments List and Document Indexation - Odoo addon"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-ocb-web>=16.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.11"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/bringout/0"
|
||||
repository = "https://github.com/bringout/0"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["attachment_indexation"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue