Odoo Technical

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

In Odoo 18, you want to add a dropdown field on a model . The set of the value consists of dozens and will keep growing in size with time. Which field type should you use ?

Avatar
Kowsalya

In Odoo 18, you want to add a dropdown field on a model . The set of the value consists of dozens and will keep growing in size with time. Which field type should you use ?

A. Selection

B. Lines

C. Many2one


Avatar
Discard
1 Answer
0
Avatar
jayashree
Best Answer

Answer: May2one

Explanation:

If you want to add a dropdown field on a model and the set of values is large (dozens, hundreds, and keeps growing), then you should not use Selection, because:

1. Selection fields are hardcoded in Python.

2. You would need to keep updating the code every time you add/remove an option.

Lines are used when you want to store a list of records with details, not just pick one value from a dropdown.


Avatar
Discard