I have a EDIT button, how i can disable or remove this functionality from my python code, when i press button.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
4
답글
5135
화면
Hi,
You can remove edit button by changing write access of a model to '0' in security files or by setting edit = false in that models form view.
eg:
<record id="sales_commission_form_view" model="ir.ui.view">
<field name="name">sales.commission.form</field>
<field name="model">sales.commission</field>
<field name="arch" type="xml">
<form create="false" edit="false" delete="false">
Regards
Use fields_view_get method and make it ['edit'] = 'false'
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
2
8월 25
|
3642 | ||
|
|
3
2월 25
|
5103 | ||
|
|
0
5월 24
|
46 | ||
|
|
1
4월 24
|
4404 | ||
|
|
4
9월 23
|
6364 |
Why not with security rules from the CSV/XML?
How i can do this, when i clicked on my button