Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2317 Tampilan

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
Buang
Penulis

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

Jawaban Terbai

Hi,

 try this class="oe_read_only"

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Des 23
38223
1
Jan 18
4781
3
Okt 24
2799
0
Mei 24
2314
1
Mei 24
1469