Files
project_v19/ks_gantt_view_project/models/ks_project_project.py
T
2026-07-01 14:41:49 +07:00

15 lines
689 B
Python

# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
# Odoo 19 note:
# In Odoo 16+, allow_subtasks is a standard Boolean field on project.project.
# The original override set it readonly=True at the ORM level, which prevented
# users from ever changing it via the project form. Removed that restriction —
# if you need the field to be read-only in a specific view, use readonly="1"
# in the view XML instead of redefining the field on the model.
# This file is kept as a placeholder so the models/__init__.py import remains valid.
class KsProject(models.Model):
_inherit = "project.project"
# No field overrides needed — allow_subtasks is already defined in core.