An overridable model method was added in a previous commit in order to neutralize a database. This commit adds the implementation of this method on the `iap.account` model. A _get_iap_config_paremeters method is also added on this model. Each iap service must override this method to extend the list of `ir.config_parameter` that need to be neutralized. Part-of: odoo/odoo#67825
11 lines
277 B
Python
11 lines
277 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class IapAccount(models.Model):
|
|
_inherit = 'iap.account'
|
|
|
|
def _get_iap_config_parameters(self):
|
|
return super()._get_iap_config_parameters() + ['sms.endpoint']
|