mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 18:38:41 -06:00
[FIX] Comments and CI errors
This commit is contained in:
parent
b558936218
commit
0af8df90cf
@ -37,9 +37,7 @@ class DocumentPage(models.Model):
|
|||||||
'Children'
|
'Children'
|
||||||
)
|
)
|
||||||
|
|
||||||
content = fields.Text(
|
content = fields.Text("Content")
|
||||||
"Content"
|
|
||||||
)
|
|
||||||
|
|
||||||
display_content = fields.Text(
|
display_content = fields.Text(
|
||||||
string='Displayed Content',
|
string='Displayed Content',
|
||||||
@ -60,26 +58,23 @@ class DocumentPage(models.Model):
|
|||||||
|
|
||||||
create_date = fields.Datetime(
|
create_date = fields.Datetime(
|
||||||
"Created on",
|
"Created on",
|
||||||
index=True,
|
|
||||||
readonly=True
|
readonly=True
|
||||||
)
|
)
|
||||||
|
|
||||||
create_uid = fields.Many2one(
|
create_uid = fields.Many2one(
|
||||||
'res.users',
|
'res.users',
|
||||||
'Author',
|
'Author',
|
||||||
index=True,
|
|
||||||
readonly=True
|
readonly=True
|
||||||
)
|
)
|
||||||
|
|
||||||
write_date = fields.Datetime(
|
write_date = fields.Datetime(
|
||||||
"Modification Date",
|
"Modification Date",
|
||||||
index=True,
|
readonly=True
|
||||||
readonly=True)
|
)
|
||||||
|
|
||||||
write_uid = fields.Many2one(
|
write_uid = fields.Many2one(
|
||||||
'res.users',
|
'res.users',
|
||||||
"Last Contributor",
|
"Last Contributor",
|
||||||
index=True,
|
|
||||||
readonly=True
|
readonly=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import difflib
|
import difflib
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
from odoo.tools.translate import _
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import exceptions, fields, models
|
||||||
from odoo import exceptions
|
from odoo.tools.translate import _
|
||||||
|
|
||||||
|
|
||||||
class DocumentPageShowDiff(models.TransientModel):
|
class DocumentPageShowDiff(models.TransientModel):
|
||||||
|
Loading…
Reference in New Issue
Block a user