跳至内容
菜单
此问题已终结
1 回复
3889 查看

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?

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
9月 24
1297
4
1月 24
23133
2
1月 24
2432
0
8月 23
2291
5
9月 21
17488