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