Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3938 Lượt xem

We have a project to manage our product claim based on task. In our product claims I want to be able to add the purchase date. Therefore I created a new field x_date_purchase in the project.task model and an inherited view of the project.task.form. Now the new purchase date field is available in all task of all projects.

Is it also possible to create an inherited view dedicated to only one project so that this new field is only available in the product claims project?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

view dedicated to only one projec must you need to know id project 'id in database'.

and in your field must be used attribut 'invisible' :

for example project 1 :

<field name="x_date_purchase"  attrs="{'invisible':[('project_id','!=',1)]}"  />

to know id project in database active mode developer and in form project.project clik to view log:

image description

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 24
1356
4
thg 1 24
23222
Attrs attribute Đã xử lý
2
thg 1 24
2523
0
thg 8 23
2337
5
thg 9 21
17585