Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
8596 Переглядів

Hi i am building a form with basic fields but i need to add dynamically other fields. How to ensure that the new fields will be updated in the concerned model. does an existing ORM api can ensure that??

Аватар
Відмінити

Do you want to add a field (a table column in your database) or to hide/unhide an existed field?

It is possible to add a field dynamically through python code called by a form action but I suppose if you ask about it this will be too complicated for you.

Найкраща відповідь

Hi,

Take a look at Settings -> Technical -> Database Structure -> Models. You will find all the models and you can add fields directly (with some limitation).

You can reproduce this on a other specific form view.

The source : https://github.com/odoo/odoo/blob/9.0/openerp/addons/base/ir/ir_model.py

Best regards

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
січ. 21
1585
0
вер. 19
98
5
лип. 19
4225
1
лип. 17
3646
4
серп. 16
7474