Odoo 도움말

0

0
5 응답
0
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')

....

0
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.

Register
Odoo Training Center

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

Test it now