Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2307 Представления

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
Аватар
Отменить
Автор

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

Лучший ответ

Hi,

 try this class="oe_read_only"

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
дек. 23
38221
1
янв. 18
4778
3
окт. 24
2795
0
мая 24
2314
1
мая 24
1460