Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm trying to send a custom message notification to user that signup via the signup page. I plan to place that code just after the user as been created. Here's the controller extending the AuthSignHome controller :
_logger = logging.getLogger(__name__) class AuthSignupHome(openerp.addons.web.controllers.main.Home): def do_signup(self, qcontext): """ Shared helper that creates a res.partner out of a token """ values = dict((key, qcontext.get(key)) for key in ('login', 'name', 'password', 'document_attestation')) assert any([k for k in values.values()]), "Le formulaire n'est pas correctement remplis." assert values.get('password') == qcontext.get('confirm_password'), "Les mot de passe ne concorde pas." self._signup_with_values(qcontext.get('token'), values) // SEND GREETING MESSAGE request.cr.commit()
How can it be done ?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/11/15, 2:14 PM|
|Seen: 767 times|
|Last updated: 12/14/15, 1:47 PM|