diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-08-06 17:00:02 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-08-06 17:00:02 +0200 |
| commit | d8e2bec1580f8a4635f9cfa52be5001a777cd35b (patch) | |
| tree | 61fc581af782ee2f199e5f61da85492ae4074988 /doc | |
| parent | 3f955f05250614174be25d190c7d988d0a69b9aa (diff) | |
[FIX] state of editor after cancelled cancel() (haha), handling of a record being edited during o2m deletion
bzr revid: xmo@openerp.com-20120806150002-45c8mjq9dk5hck7y
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/list-view.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/list-view.rst b/doc/list-view.rst index 83925d82f46..24c7bb3beb4 100644 --- a/doc/list-view.rst +++ b/doc/list-view.rst @@ -160,11 +160,14 @@ Interaction Methods updated) and ``record`` the reloaded record having been edited. -.. js:function:: openerp.web.ListView.cancel_edition +.. js:function:: openerp.web.ListView.cancel_edition([force=false]) Cancels pending edition, cleans up the list view in case of creation (removes the empty record being created). + :param Boolean force: doesn't check if the user has added any + data, discards the edition unconditionally + Utility Methods +++++++++++++++ @@ -345,11 +348,14 @@ formview, delegating instead to its from when it was passed in, aside from the ``id`` attribute. - .. js:function:: openerp.web.list.Editor.cancel + .. js:function:: openerp.web.list.Editor.cancel([force=false]) Attemps to cancel the edition of the internal form, then hide the form + :param Boolean force: unconditionally cancels the edition of + the internal form, even if the user has + already entered data in it. :returns: delegate to the record under edition .. js:class:: EditorOptions |
