[MIG] document_page_project: Migration to 13.0

This commit is contained in:
Joan Sisquella
2020-01-15 12:40:00 +01:00
committed by Bhavesh Heliconia
parent 120ee8a7f5
commit 6da1be24e8
9 changed files with 64 additions and 55 deletions

View File

@@ -1,5 +1,4 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models

View File

@@ -1,8 +1,7 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
from odoo import fields, models
class ProjectProject(models.Model):
@@ -13,7 +12,6 @@ class ProjectProject(models.Model):
)
document_page_count = fields.Integer(compute="_compute_document_page_count")
@api.multi
def _compute_document_page_count(self):
for rec in self:
rec.document_page_count = len(rec.document_page_ids)