İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2976 Görünümler

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
Vazgeç
Üretici

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

En İyi Yanıt

Hi,

 try this class="oe_read_only"

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Ara 23
39825
1
Oca 18
5189
3
Eki 24
3505
0
May 24
3172
1
May 24
1969