Bem vindo!
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Criar um usuario sem enviar email
Quando o Servidor de Email é configurado, um email é enviado automaticamente á novos usuários Odoo. Caso queira evitar o comportamento, no_reset_password=True deve ser passado no contexto:
class res_users(models.Model): _inherit = 'res.users' @api.model def create(self, vals): user = super(res_users, self.with_context(no_reset_password=True)).create(vals) return user
Your Answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Fique Informado
Sobre esta Comunidade
Moderation Tools
Ferramentas de Pergunta
Estatísticas
Perguntada: 17/06/21 13:02 |
Visto: 737 vezes |
Última atualização: 17/06/21 13:02 |