mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
web_ir_actions_act_view_reload: fix README (#1633)
Unresolved reference self and module odoo.api has no attribute multi
This commit is contained in:
@@ -36,8 +36,7 @@ To use this functionality you need to return following action:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@api.multi
|
||||
def foo():
|
||||
def foo(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'type': 'ir.actions.act_view_reload',
|
||||
|
||||
@@ -2,8 +2,7 @@ To use this functionality you need to return following action:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@api.multi
|
||||
def foo():
|
||||
def foo(self):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'type': 'ir.actions.act_view_reload',
|
||||
|
||||
Reference in New Issue
Block a user