0 编辑 关闭 删除 标记 How to make Readonly states based on condition 编辑 关闭 删除 标记 odoo 21 十月 2022 退订 订阅 Odoo15readonlystates 评论 分享 贴子评论 丢弃 2 答案 0 odoo 21 十月 2022 最佳答案 Hi Ashutosh,Try this,field name = "state" attrs="{'readonly': [('state', 'in', ('resolved','new','in progress')]}"Thanks 备注 分享 贴子评论 丢弃 0 odoo 21 十月 2022 最佳答案 Hi Ashutosh,Try this,field name = "state" attrs="{'readonly': [('state', '=', 'resolved')]}"Thanks 备注 分享 1 备注 贴子评论 丢弃 odoo - 21 十月 2022 删除 转换为答案 I tried this one .. particular this state is getting readonly .. I need all the states to be readonly