[UPD] Modify the authentification process to Github
Now use a sole Github access for whole Odoo users, set in the General Configuration
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import res_user
|
||||
from . import res_config_settings
|
||||
from . import company
|
||||
from . import git_platform
|
||||
from . import git_issue
|
||||
|
@@ -1,9 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class Users(models.Model):
|
||||
_inherit = "res.users"
|
||||
class Company(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
github_token = fields.Char(string="Github token")
|
9
dev_github_connector/models/res_config_settings.py
Normal file
9
dev_github_connector/models/res_config_settings.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
github_token = fields.Char(
|
||||
related="company_id.github_token", string="Github token", readonly=False
|
||||
)
|
Reference in New Issue
Block a user