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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
4
Réponses
4564
Vues
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'
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
août 25
|
2753 | ||
|
3
févr. 25
|
3964 | ||
|
0
mai 24
|
46 | ||
|
1
avr. 24
|
3597 | ||
|
4
sept. 23
|
5150 |
Why not with security rules from the CSV/XML?
How i can do this, when i clicked on my button