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
- 会計
- 在庫
- PoS
- プロジェクト
- MRP
この質問にフラグが付けられました
3
返信
9555
ビュー
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
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
|
2
9月 25
|
1292 | ||
|
|
0
1月 21
|
3309 | ||
|
|
0
9月 19
|
98 | ||
|
|
5
7月 19
|
5734 | ||
|
|
1
7月 17
|
5085 |
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.