跳至內容
選單
此問題已被標幟
2 回覆
5901 瀏覽次數
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
頭像
捨棄
最佳答案

Hi,

There's a disabled class which lets you disable the button in odoo. So, change the code to:

<button id="is_approved" name="button_approved" class="oe_highlight disabled" string="Aprobar" type="object" groups="sales_team.group_sale_manager"/>


Regards

頭像
捨棄
最佳答案

attrs="{'readonly': [('state', '=', 'disabled')]

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 24
1481
1
9月 23
1877
5
7月 25
7714
3
1月 24
13658
1
4月 23
227