Welcome!
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!
Keep Informed
About This Community
Moderation Tools
Question tools
Stats
Asked: 6/17/21, 1:02 PM |
Seen: 739 times |
Last updated: 6/17/21, 1:02 PM |