mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 12:12:57 -06:00
[IMP] document_page_project: black, isort
This commit is contained in:
parent
e275593f5c
commit
120ee8a7f5
@ -3,22 +3,15 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Document Page Project',
|
"name": "Document Page Project",
|
||||||
'summary': 'This module links document pages to projects',
|
"summary": "This module links document pages to projects",
|
||||||
'version': '12.0.1.0.0',
|
"version": "12.0.1.0.0",
|
||||||
"development_status": "Beta",
|
"development_status": "Beta",
|
||||||
'category': 'Project',
|
"category": "Project",
|
||||||
'author': 'Eficent, '
|
"author": "Eficent, " "Odoo Community Association (OCA)",
|
||||||
'Odoo Community Association (OCA)',
|
"website": "https://github.com/OCA/knowledge",
|
||||||
'website': 'https://github.com/OCA/knowledge',
|
"license": "AGPL-3",
|
||||||
'license': 'AGPL-3',
|
"depends": ["project", "document_page"],
|
||||||
'depends': [
|
"data": ["views/document_page_views.xml", "views/project_project_views.xml"],
|
||||||
'project',
|
"installable": True,
|
||||||
'document_page',
|
|
||||||
],
|
|
||||||
'data': [
|
|
||||||
'views/document_page_views.xml',
|
|
||||||
'views/project_project_views.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,6 @@ from odoo import fields, models
|
|||||||
|
|
||||||
|
|
||||||
class DocumentPage(models.Model):
|
class DocumentPage(models.Model):
|
||||||
_inherit = 'document.page'
|
_inherit = "document.page"
|
||||||
|
|
||||||
project_id = fields.Many2one(
|
project_id = fields.Many2one(string="Project", comodel_name="project.project")
|
||||||
string='Project',
|
|
||||||
comodel_name='project.project',
|
|
||||||
)
|
|
||||||
|
@ -6,16 +6,12 @@ from odoo import api, fields, models
|
|||||||
|
|
||||||
|
|
||||||
class ProjectProject(models.Model):
|
class ProjectProject(models.Model):
|
||||||
_inherit = 'project.project'
|
_inherit = "project.project"
|
||||||
|
|
||||||
document_page_ids = fields.One2many(
|
document_page_ids = fields.One2many(
|
||||||
string='Wiki',
|
string="Wiki", comodel_name="document.page", inverse_name="project_id"
|
||||||
comodel_name='document.page',
|
|
||||||
inverse_name='project_id',
|
|
||||||
)
|
|
||||||
document_page_count = fields.Integer(
|
|
||||||
compute='_compute_document_page_count',
|
|
||||||
)
|
)
|
||||||
|
document_page_count = fields.Integer(compute="_compute_document_page_count")
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _compute_document_page_count(self):
|
def _compute_document_page_count(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user