Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2304 Vistas

Hello everyone,

I created a Save Button in the Quotation Form. After the quotation form is created or edited the save button must be hidden or invisible. 

Most Odoo modules use the "state" field for this problem in order to make the button invisible but I want the save button hidden after a form is saved or edited. Thank you. Below is my code:

Python Code (Server Action)

def save(self, cr, uid, ids, context):
    return True
Avatar
Descartar
Autor

XML Code:
<xpath expr="//button[@name='action_cancel']" position="before">
<button string="Save" type="action" name="1003" class="oe_highlights"/>
</xpath>

Mejor respuesta

Hi,

 try this class="oe_read_only"

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
dic 23
38212
1
ene 18
4778
3
oct 24
2786
0
may 24
2307
1
may 24
1456