Odoo Aide

1

0
4 Answers
0
Pablo Guerra
03/03/2019 23:13
Try like this

state = fields.Selection(string="Statut", selection_add="[('e', 'e')]", default='e')
1 Commentaires
Zakaria
04/03/2019 06:57

Where do I put this instruction? I tried both in the declaration of the model and in the create function but still no results

0
hamza
28/05/2019 00:32

The answer is simple just change the name of your field from 'state' to 'anythingnelse' then it will work perfect. Thank You

Poser une question
Writer
Keep Informed
1 Abonné(e)s
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now