Odoo Hilfe


2 Antworten
Linto Indien
08.03.17, 01:31

There is a function '_onchange_stage_id_values' in 'crm.lead' model. You can detect the stage changes from here, i.e to when the opportunity is marked 'Won' and from there, you can set the corresponding contact-boolean "Is a Customer" to "True" and send an email.

Sehrish Pakistan
02.05.18, 01:28

Have a look into code

1    @api.onchange('stage_field')
2    def _onchange_method_name(self):
3        if self.your_stage == 'ABC':
4            self.your_boolean_field = False
5        else:            
6            self. your_boolean_field = True

Hope its helped out you....

Fragen Sie
Keep Informed
1 Verfolger
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now