mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 10:28:40 -06:00
Add document_definition module
This commit is contained in:
parent
27a3fbda77
commit
a5a01ecfcd
54
document_definition/README.rst
Normal file
54
document_definition/README.rst
Normal file
@ -0,0 +1,54 @@
|
||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
|
||||
===================
|
||||
document_definition
|
||||
===================
|
||||
|
||||
Installs a new document_definition model for dictionary-style word archive and
|
||||
definition. Searchable in the Knowledge menu.
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
* A search function per term and per definition, obviously.
|
||||
* Dictionary Style Alphabetical grouping view
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/knowledge/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Images
|
||||
------
|
||||
|
||||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Giovanni Francesco Capalbo <giovanni@therp.nl>
|
||||
|
||||
Do not contact contributors directly about help with questions or problems concerning this addon, but use the `community mailing list <mailto:community@mail.odoo.com>`_ or the `appropriate specialized mailinglist <https://odoo-community.org/groups>`_ for help, and the bug tracker linked in `Bug Tracker`_ above for technical issues.
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
6
document_definition/__init__.py
Normal file
6
document_definition/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from . import models
|
||||
from . import wizards
|
||||
from . import controllers
|
32
document_definition/__openerp__.py
Normal file
32
document_definition/__openerp__.py
Normal file
@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Term",
|
||||
"version": "8.0.1.0.0",
|
||||
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"category": "",
|
||||
"summary": "",
|
||||
"depends": [
|
||||
],
|
||||
"data": [
|
||||
'views/templates.xml',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
"qweb": [
|
||||
],
|
||||
"test": [
|
||||
],
|
||||
"images": [
|
||||
],
|
||||
"pre_init_hook": False,
|
||||
"post_init_hook": False,
|
||||
"uninstall_hook": False,
|
||||
"auto_install": False,
|
||||
"installable": True,
|
||||
"application": False,
|
||||
"external_dependencies": {
|
||||
'python': [],
|
||||
},
|
||||
}
|
4
document_definition/models/__init__.py
Normal file
4
document_definition/models/__init__.py
Normal file
@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from . import document_definition
|
11
document_definition/models/document_definition.py
Normal file
11
document_definition/models/document_definition.py
Normal file
@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from openerp import api, fields, models
|
||||
|
||||
|
||||
class document_definition(models.Model):
|
||||
_inherit = 'document_definition'
|
||||
_name = 'document_definition'
|
||||
_description = ''
|
||||
|
1
document_definition/security/ir.model.access.csv
Normal file
1
document_definition/security/ir.model.access.csv
Normal file
@ -0,0 +1 @@
|
||||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
|
|
BIN
document_definition/static/description/icon.png
Normal file
BIN
document_definition/static/description/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
7
document_definition/static/src/js/document_definition.js
Normal file
7
document_definition/static/src/js/document_definition.js
Normal file
@ -0,0 +1,7 @@
|
||||
//-*- coding: utf-8 -*-
|
||||
//© 2017 Therp BV <http://therp.nl>
|
||||
//License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
openerp.document_definition = function(instance)
|
||||
{
|
||||
}
|
4
document_definition/tests/__init__.py
Normal file
4
document_definition/tests/__init__.py
Normal file
@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from . import test_document_definition
|
9
document_definition/tests/test_document_definition.py
Normal file
9
document_definition/tests/test_document_definition.py
Normal file
@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from openerp.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestDocumentDefinition(TransactionCase):
|
||||
def test_document_definition(self):
|
||||
pass
|
11
document_definition/views/templates.xml
Normal file
11
document_definition/views/templates.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<template id="assets_backend" name="document_definition assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/document_definition/static/src/js/document_definition.js"></script>
|
||||
<link rel="stylesheet" href="/document_definition/static/src/css/document_definition.css"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
3
document_definition/wizards/__init__.py
Normal file
3
document_definition/wizards/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
Loading…
Reference in New Issue
Block a user