Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2332 Visninger

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
Kassér
Forfatter

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

Bedste svar

Hi,

 try this class="oe_read_only"

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
dec. 23
38244
1
jan. 18
4793
3
okt. 24
2811
0
maj 24
2332
1
maj 24
1489