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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
4
Replies
3419
Views
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!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Apr 24
|
1008 | ||
|
0
May 24
|
46 | ||
|
1
Apr 24
|
1822 | ||
|
4
Sep 23
|
3084 | ||
|
2
Sep 23
|
5592 |
Why not with security rules from the CSV/XML?
How i can do this, when i clicked on my button