Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2660 Visualizzazioni

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
Abbandona
Autore

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

Risposta migliore

Hi,

 try this class="oe_read_only"

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
dic 23
39151
1
gen 18
4970
3
ott 24
3224
0
mag 24
2741
1
mag 24
1743