Skip to content

Commit

Permalink
updated to satisfy
Browse files Browse the repository at this point in the history
  • Loading branch information
tb-flyt committed Feb 27, 2024
1 parent 217a07e commit a4612e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion auth_saml/models/auth_saml_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ class AuthSamlProvider(models.Model):
help="Whether metadata should be signed or not",
)

allow_saml_unsolicited_req = fields.Boolean(compute="_compute_allow_saml_unsolicited")
allow_saml_unsolicited_req = fields.Boolean(
compute="_compute_allow_saml_unsolicited"
)

@api.model
def _sig_alg_selection(self):
Expand Down
1 change: 1 addition & 0 deletions auth_saml/models/res_company.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-

from odoo import models, api, fields, _

class ResCompany(models.Model):
_inherit = 'res.company'

Expand Down
4 changes: 3 additions & 1 deletion auth_saml/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ class ResConfigSettings(models.TransientModel):
config_parameter=ALLOW_SAML_UID_AND_PASSWORD,
)

allow_saml_unsolicited_req = fields.Boolean(related='company_id.allow_saml_unsolicited_req', readonly=False)
allow_saml_unsolicited_req = fields.Boolean(
related='company_id.allow_saml_unsolicited_req', readonly=False
)

0 comments on commit a4612e6

Please sign in to comment.