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??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Progetti
- MRP
La domanda è stata contrassegnata
3
Risposte
9525
Visualizzazioni
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
2
set 25
|
1250 | ||
|
|
0
gen 21
|
3285 | ||
|
|
0
set 19
|
98 | ||
|
How to add Fields in Form
Risolto
|
|
5
lug 19
|
5712 | |
|
|
1
lug 17
|
5066 |
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.