mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 18:38:41 -06:00
small fixes in README and labels
This commit is contained in:
parent
1b56ee20bd
commit
ed0dbcfee1
@ -2,18 +2,13 @@
|
|||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
|
|
||||||
===================
|
=====================
|
||||||
document_definition
|
Terms and definitions
|
||||||
===================
|
=====================
|
||||||
|
|
||||||
Installs a new document_definition model for dictionary-style word archive and
|
Installs a new document_definition model for dictionary-style word archive and
|
||||||
definition. Searchable in the Knowledge menu.
|
definition. Adds Searchable view for terms and definitions in the Knowledge menu.
|
||||||
|
Has a search view per term and per definition and a dictionary Style Alphabetical grouping view.
|
||||||
Known issues / Roadmap
|
|
||||||
======================
|
|
||||||
|
|
||||||
* A search function per term and per definition, obviously.
|
|
||||||
* Dictionary Style Alphabetical grouping view
|
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
@ -23,9 +18,6 @@ Bugs are tracked on `GitHub Issues
|
|||||||
check there if your issue has already been reported. If you spotted it first,
|
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.
|
help us smashing it by providing a detailed and welcomed feedback.
|
||||||
|
|
||||||
Credits
|
|
||||||
=======
|
|
||||||
|
|
||||||
Images
|
Images
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from openerp import api, fields, models
|
|||||||
class DocumentDefinition(models.Model):
|
class DocumentDefinition(models.Model):
|
||||||
_name = 'document.definition'
|
_name = 'document.definition'
|
||||||
|
|
||||||
term = fields.Char(help='Term to define', required=True)
|
term = fields.Char(help='Term', required=True)
|
||||||
definition = fields.Text(help='Definition of term', required=True)
|
definition = fields.Text(help='Definition of term', required=True)
|
||||||
|
|
||||||
# stored compute field used for making the letter grouping
|
# stored compute field used for making the letter grouping
|
||||||
@ -15,7 +15,7 @@ class DocumentDefinition(models.Model):
|
|||||||
first_letter = fields.Char()
|
first_letter = fields.Char()
|
||||||
|
|
||||||
def _get_first_letter(self, text):
|
def _get_first_letter(self, text):
|
||||||
# if somehow the user starts with a blank space we trim it
|
# if somehow the user starts with one or more whitespaces we trim
|
||||||
return text.lstrip()[:1].upper() or 'Blank Term'
|
return text.lstrip()[:1].upper() or 'Blank Term'
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
|
Loading…
Reference in New Issue
Block a user