[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:
Stéphan Sainléger
2022-07-01 09:52:30 +02:00
parent 42867f0bb0
commit 194422e2a9
7 changed files with 43 additions and 25 deletions

View File

@@ -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

View File

@@ -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")

View 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
)