[CHG] remove server_environment dependency
Moving this behaviour in a new module in server-env repopull/2504/head
parent
0542d310b2
commit
a4d29086ca
|
@ -15,7 +15,7 @@
|
|||
"application": False,
|
||||
"installable": True,
|
||||
"external_dependencies": {"python": [], "bin": []},
|
||||
"depends": ["iap", "server_environment"],
|
||||
"depends": ["iap"],
|
||||
"data": ["views/iap_account_view.xml"],
|
||||
"demo": [],
|
||||
}
|
||||
|
|
|
@ -6,19 +6,12 @@ from odoo import api, fields, models
|
|||
|
||||
|
||||
class IapAccount(models.Model):
|
||||
_inherit = ["iap.account", "server.env.mixin"]
|
||||
_inherit = "iap.account"
|
||||
_name = "iap.account"
|
||||
|
||||
name = fields.Char()
|
||||
provider = fields.Selection([("odoo", "Odoo IAP")], required=True, default="odoo")
|
||||
|
||||
@property
|
||||
def _server_env_fields(self):
|
||||
return {
|
||||
"provider": {},
|
||||
"account_token": {},
|
||||
}
|
||||
|
||||
def _get_service_from_provider(self):
|
||||
"""In case that the provider only propose one service you can
|
||||
return the service_name in you module to simplify the user interface"""
|
||||
|
|
Loading…
Reference in New Issue