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
- Apskaita
- Atsarga
- PoS
- Projektas
- MRP
This question has been flagged
4
Replies
5073
Rodiniai
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'
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
|
2
rugp. 25
|
3601 | ||
|
|
3
vas. 25
|
5035 | ||
|
|
0
geg. 24
|
46 | ||
|
|
1
bal. 24
|
4307 | ||
|
|
4
rugs. 23
|
6279 |
Why not with security rules from the CSV/XML?
How i can do this, when i clicked on my button