oca-project/odoo-bringout-oca-project-task_project_status/task_project_status/models/project.py
Ernad Husremovic 6094c218b2 Move 124 sale modules to oca-sale, create oca-project with 56 project modules from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 18:04:10 +02:00

16 lines
428 B
Python

# Copyright Binhex 2024
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0).
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
project_status = fields.Many2one(
"project.project.stage",
string="Project Status",
copy=False,
ondelete="restrict",
index=True,
store=True,
related="project_id.stage_id",
)