Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3059 Zobrazení

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
Zrušit
Autor

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

Nejlepší odpověď

Hi,

 try this class="oe_read_only"

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
pro 23
40030
1
led 18
5250
3
říj 24
3633
0
kvě 24
3293
1
kvě 24
2106