mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 09:51:27 -06:00
[IMP] knowledge: black, isort
This commit is contained in:
parent
49b26cbe55
commit
317a62f3ea
@ -4,25 +4,21 @@
|
|||||||
"name": "Knowledge",
|
"name": "Knowledge",
|
||||||
"version": "12.0.1.0.0",
|
"version": "12.0.1.0.0",
|
||||||
"author": "OpenERP SA,"
|
"author": "OpenERP SA,"
|
||||||
"MONK Software, "
|
"MONK Software, "
|
||||||
"Tecnativa, "
|
"Tecnativa, "
|
||||||
"Eficent, "
|
"Eficent, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
"category": "Knowledge",
|
"category": "Knowledge",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
"depends": [
|
"depends": ["base"],
|
||||||
"base",
|
|
||||||
],
|
|
||||||
"data": [
|
"data": [
|
||||||
"data/ir_module_category.xml",
|
"data/ir_module_category.xml",
|
||||||
"security/knowledge_security.xml",
|
"security/knowledge_security.xml",
|
||||||
"views/knowledge.xml",
|
"views/knowledge.xml",
|
||||||
"views/res_config.xml",
|
"views/res_config.xml",
|
||||||
],
|
],
|
||||||
"demo": [
|
"demo": ["demo/knowledge.xml"],
|
||||||
"demo/knowledge.xml",
|
|
||||||
],
|
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"application": True,
|
"application": True,
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ from odoo import fields, models
|
|||||||
|
|
||||||
|
|
||||||
class IrAttachment(models.Model):
|
class IrAttachment(models.Model):
|
||||||
_inherit = 'ir.attachment'
|
_inherit = "ir.attachment"
|
||||||
|
|
||||||
# Add index to res_model because filtering on it is a common use case
|
# Add index to res_model because filtering on it is a common use case
|
||||||
res_model = fields.Char(index=True)
|
res_model = fields.Char(index=True)
|
||||||
|
@ -5,41 +5,42 @@ from odoo import fields, models
|
|||||||
|
|
||||||
|
|
||||||
class KnowledgeConfigSettings(models.TransientModel):
|
class KnowledgeConfigSettings(models.TransientModel):
|
||||||
_inherit = 'res.config.settings'
|
_inherit = "res.config.settings"
|
||||||
|
|
||||||
module_document = fields.Boolean(
|
module_document = fields.Boolean(
|
||||||
'Attachments List and Document Indexation',
|
"Attachments List and Document Indexation",
|
||||||
help='Document indexation, full text search of attachements.\n'
|
help="Document indexation, full text search of attachements.\n"
|
||||||
'- This installs the module document.'
|
"- This installs the module document.",
|
||||||
)
|
)
|
||||||
|
|
||||||
group_ir_attachment_user = fields.Boolean(
|
group_ir_attachment_user = fields.Boolean(
|
||||||
string='Central access to Documents',
|
string="Central access to Documents",
|
||||||
help="When you set this field all users will be able to manage "
|
help="When you set this field all users will be able to manage "
|
||||||
"attachments centrally, from the Knowledge/Documents menu.",
|
"attachments centrally, from the Knowledge/Documents menu.",
|
||||||
implied_group='knowledge.group_ir_attachment_user')
|
implied_group="knowledge.group_ir_attachment_user",
|
||||||
|
)
|
||||||
|
|
||||||
module_document_page = fields.Boolean(
|
module_document_page = fields.Boolean(
|
||||||
'Manage document pages (Wiki)',
|
"Manage document pages (Wiki)",
|
||||||
help='Provide document page and category as a wiki.\n'
|
help="Provide document page and category as a wiki.\n"
|
||||||
'- This installs the module document_page.'
|
"- This installs the module document_page.",
|
||||||
)
|
)
|
||||||
|
|
||||||
module_document_page_approval = fields.Boolean(
|
module_document_page_approval = fields.Boolean(
|
||||||
'Manage documents approval',
|
"Manage documents approval",
|
||||||
help='Add workflow on documents per category.\n'
|
help="Add workflow on documents per category.\n"
|
||||||
'- This installs the module document_page_approval.'
|
"- This installs the module document_page_approval.",
|
||||||
)
|
)
|
||||||
|
|
||||||
module_cmis_read = fields.Boolean(
|
module_cmis_read = fields.Boolean(
|
||||||
'Attach files from an external DMS into Odoo',
|
"Attach files from an external DMS into Odoo",
|
||||||
help='Connect Odoo with a CMIS compatible server to attach files\n'
|
help="Connect Odoo with a CMIS compatible server to attach files\n"
|
||||||
'to an Odoo record.\n'
|
"to an Odoo record.\n"
|
||||||
'- This installs the module cmis_read.'
|
"- This installs the module cmis_read.",
|
||||||
)
|
)
|
||||||
|
|
||||||
module_cmis_write = fields.Boolean(
|
module_cmis_write = fields.Boolean(
|
||||||
'Store attachments in an external DMS instead of the Odoo Filestore',
|
"Store attachments in an external DMS instead of the Odoo Filestore",
|
||||||
help='Connect Odoo with a CMIS compatible server to store files.\n'
|
help="Connect Odoo with a CMIS compatible server to store files.\n"
|
||||||
'- This installs the module cmis_write.'
|
"- This installs the module cmis_write.",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user