跳至內容
選單
此問題已被標幟
2 回覆
1005 瀏覽次數

1. I have a custom form where the needs are changing very frequently.

​- For example, today they want to add 5 new fields to the form.

​- So instead of adding them in the python model definition every time they want to add a field, I want them to add those fields themselves using the model management view from builtin settings, where I filtered the models to those that are introduced in my module.

2. I have a xml view file that defines the form for this model, but it cannot reflect the latest added custom fields. I know all fields are displayed in the default view, but there are some fields that I want to hide and I want to organize the form.


Question: How can I add the new custom fields to the place that I want on the form?

頭像
捨棄
最佳答案

Hi,
You can create an inherited view and using xpath expression located the needed node and using after or before, you can add the new fields to form.

See this:  How to Add Custom Field From User Interface In Odoo



Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 25
1828
2
8月 25
475
2
3月 25
1391
1
2月 25
1756
1
12月 24
2260