[MIG] dev_git_*: migration to v14. Issue post not tested
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "Git Project Task Connector",
|
||||
"version": "12.0.1.1.0",
|
||||
"version": "14.0.0.0.0",
|
||||
"author": "Elabore",
|
||||
"maintainer": "False",
|
||||
"website": "False",
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,9 +14,12 @@ class GitRepository(models.Model):
|
||||
string="Displayed name", compute="_compute_displayed_name"
|
||||
)
|
||||
|
||||
@api.multi
|
||||
@api.depends("owner", "name")
|
||||
def _compute_displayed_name(self):
|
||||
for record in self:
|
||||
if record.name and record.owner:
|
||||
record.displayed_name = record.owner + "/" + record.name
|
||||
displayed_name = []
|
||||
if record.owner:
|
||||
displayed_name.append(record.owner)
|
||||
if record.name:
|
||||
displayed_name.append(record.name)
|
||||
record.displayed_name = '/'.join(displayed_name)
|
||||
|
@@ -4,4 +4,8 @@ access_git_issue_manager,git.issue.manager,dev_git_project_task_connector.model_
|
||||
access_git_repo_user,git.repo.user,dev_git_project_task_connector.model_git_repo,project.group_project_user,1,0,0,0
|
||||
access_git_repo_manager,git.repo.manager,dev_git_project_task_connector.model_git_repo,project.group_project_manager,1,1,1,1
|
||||
access_git_platform_user,git.platform.user,dev_git_project_task_connector.model_git_platform,project.group_project_user,1,0,0,0
|
||||
access_git_platform_manager,git.platform.manager,dev_git_project_task_connector.model_git_platform,project.group_project_manager,1,1,1,1
|
||||
access_git_platform_manager,git.platform.manager,dev_git_project_task_connector.model_git_platform,project.group_project_manager,1,1,1,1
|
||||
access_create_git_issue_user,create.git.issue.user,dev_git_project_task_connector.model_create_git_issue,project.group_project_user,1,0,0,0
|
||||
access_create_git_issue_manager,create.git.issue.manager,dev_git_project_task_connector.model_create_git_issue,project.group_project_manager,1,1,1,1
|
||||
access_link_git_issue_user,link.git.issue.user,dev_git_project_task_connector.model_link_git_issue,project.group_project_user,1,0,0,0
|
||||
access_link_git_issue_manager,link.git.issue.manager,dev_git_project_task_connector.model_link_git_issue,project.group_project_manager,1,1,1,1
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "Github Odoo Connector",
|
||||
"version": "12.0.1.2.0",
|
||||
"version": "14.0.0.0.0",
|
||||
"author": "Elabore",
|
||||
"maintainer": "False",
|
||||
"website": "False",
|
||||
|
BIN
dev_github_connector/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
dev_github_connector/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
dev_github_connector/models/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
dev_github_connector/models/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
dev_github_connector/models/__pycache__/company.cpython-38.pyc
Normal file
BIN
dev_github_connector/models/__pycache__/company.cpython-38.pyc
Normal file
Binary file not shown.
BIN
dev_github_connector/models/__pycache__/git_issue.cpython-38.pyc
Normal file
BIN
dev_github_connector/models/__pycache__/git_issue.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,4 +6,4 @@ from odoo import models, fields
|
||||
class GitPlatform(models.Model):
|
||||
_inherit = "git.platform"
|
||||
|
||||
tool = fields.Selection(selection_add=[("github", "Github")])
|
||||
tool = fields.Selection(selection_add=[("github", "Github")], ondelete={'github':'cascade'})
|
||||
|
BIN
dev_github_connector/wizard/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
dev_github_connector/wizard/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user