字段只读和组属性 [英] Field readonly and groups attribute

查看:62
本文介绍了字段只读和组属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在Openerp 6.1视图中将字段设置为只读.

I wish to make a field readonly in Openerp 6.1 views.

我希望该字段对于除特定组以外的所有组都是只读的,假设经理应该能够编辑该字段,而其他人只能对其进行查看.

I want the field to be readonly for all groups but specific groups, let's say manager should be able to edit it while others should be able to only view.

我不清楚该怎么做?请提出建议.谢谢.

I am not clear how to do it in a view ? Please suggest. Thanks.

推荐答案

您需要分享有关wht模型(模块)以及我们在说什么视图的更多信息.

you need to share more information about wht model(module ) and what view are we talking about.

它是基本模块,那么唯一的方法可能是继承它,然后进行更改.

It its a base module then the only way might be to inherit it and then make changes.

您可以尝试以下快捷方式,但我不确定是否可以解决您的问题.

You can try the below short cut but I am not sure if it will work out for you.

转到设置>>定制>>数据库结构>>字段>>

go to Settings >> Customization >> Database Structure >> Fields >>

找到要更改的字段和模型,然后在安全性中对其进行更改.

There find the field and model you want to change and then in security change it.

这篇关于字段只读和组属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆