Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2308 Widoki

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
Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

Hi,

 try this class="oe_read_only"

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
gru 23
38222
1
sty 18
4778
3
paź 24
2796
0
maj 24
2314
1
maj 24
1462