res_config_settings.py 846 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import fields, models
  4. class ResConfigSettings(models.TransientModel):
  5. _inherit = 'res.config.settings'
  6. auth_signup_reset_password = fields.Boolean(
  7. string='Enable password reset from Login page',
  8. config_parameter='auth_signup.reset_password')
  9. auth_signup_uninvited = fields.Selection(
  10. selection=[
  11. ('b2b', 'On invitation'),
  12. ('b2c', 'Free sign up'),
  13. ],
  14. string='Customer Account',
  15. default='b2c',
  16. config_parameter='auth_signup.invitation_scope')
  17. auth_signup_template_user_id = fields.Many2one(
  18. 'res.users',
  19. string='Template user for new users created through signup',
  20. config_parameter='base.template_portal_user_id')