mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[MIG] document_page_project: Migration to 13.0
This commit is contained in:
committed by
Bhavesh Heliconia
parent
120ee8a7f5
commit
6da1be24e8
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user