[MIG] document_page_project: Migration to 12.0

This commit is contained in:
mreficent
2019-03-19 18:16:50 +01:00
committed by Bhavesh Heliconia
parent 1768a4b13f
commit ce8286bf0c
8 changed files with 32 additions and 30 deletions

View File

@@ -1,2 +1,3 @@
from . import project_project
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import document_page
from . import project_project

View File

@@ -11,7 +11,7 @@ class ProjectProject(models.Model):
document_page_ids = fields.One2many(
string='Wiki',
comodel_name='document.page',
inverse_name='project_id'
inverse_name='project_id',
)
document_page_count = fields.Integer(
compute='_compute_document_page_count',