mirror of
https://github.com/bringout/oca-project.git
synced 2026-04-18 22:22:05 +02:00
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>
This commit is contained in:
parent
9eb7ae5807
commit
6094c218b2
2332 changed files with 125826 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
from odoo import SUPERUSER_ID, api, fields, models
|
||||
|
||||
|
||||
class Project(models.Model):
|
||||
_inherit = "project.project"
|
||||
|
||||
@api.model
|
||||
def _read_group_status_ids(self, statuses, domain, order):
|
||||
statuse_ids = statuses._search([], order=order, access_rights_uid=SUPERUSER_ID)
|
||||
return statuses.browse(statuse_ids)
|
||||
|
||||
project_status = fields.Many2one(
|
||||
comodel_name="project.status",
|
||||
group_expand="_read_group_status_ids",
|
||||
copy=False,
|
||||
ondelete="restrict",
|
||||
index=True,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue