Odoo 도움말


5 응답
Amr Abd-Alkrim Hassan Sudan
19. 7. 20. 오전 7:13

You can't add more combo-box options from the developer mode menu..You can make a new module in your addons directory and add this to your python code .​


from odoo import fields,models,api

class example (models.Model):
         #inherit the model that has your combo box you can find it if you clicked edit form view
         #in your developer mode menu

         _inherit = "your_model"

         #then write your combobox field name like below and add the same option you had and add more if you want
         #>> this will overwrite the field with the new value
         your_combobox_field_name = fields.Selection([
            ('option1', 'Option 1'),
            ('option2', 'Option 2'),
         ], string='String to display', default='option1')


Antonio Arcucci Italy
19. 7. 19. 오후 1:53

Static or dynamic (based on other model) ?

Keep Informed
1 팔로워
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