How To reload page on click button in openerp/odoo
You have to add button in form view like below code.
<xpath expr="//field[@name='name']" position="after">
<button name="refresh_page" string="Refresh" type="object"/>
</xpath>
You have to create one method like below.(this mehtod call when you click on button)
@api.multi
def refresh_page(self):
return { 'type': 'ir.actions.client', 'tag': 'reload'}
You have to add button in form view like below code.
<xpath expr="//field[@name='name']" position="after">
<button name="refresh_page" string="Refresh" type="object"/>
</xpath>
You have to create one method like below.(this mehtod call when you click on button)
@api.multi
def refresh_page(self):
return { 'type': 'ir.actions.client', 'tag': 'reload'}
Odoo partner
ReplyDeleteThanks for sharing this informative article. This content is very useful.
Odoo Partners