res_config_settings.py 501 B

1234567891011121314151617
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. from odoo import fields, models
  3. class ResConfigSettings(models.TransientModel):
  4. _inherit = 'res.config.settings'
  5. google_custom_search_key = fields.Char(
  6. string="Google Custom Search API Key",
  7. config_parameter='google.custom_search.key',
  8. )
  9. google_pse_id = fields.Char(
  10. string="The identifier of the Google Programmable Search Engine",
  11. config_parameter='google.pse.id',
  12. )