Skip to content

Commit 8ffabd0

Browse files
committed
[ADD] add new settings for oauth pub and priv keys
1 parent 6679c87 commit 8ffabd0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from odoo import _, api, fields, models
2+
3+
class RegistryConfig(models.TransientModel):
4+
_inherit = "res.config.settings"
5+
6+
oauth_priv_key = fields.Char(
7+
string="OAuth Private Key",
8+
config_parameter="spp_oauth.oauth_priv_key",
9+
)
10+
oauth_pub_key = fields.Char(
11+
string="OAuth Public Key",
12+
config_parameter="spp_oauth.oauth_pub_key",
13+
)

0 commit comments

Comments
 (0)