Comment by [email protected]:
I should add the target domain (or maybe the target action) as a parameter
of on_drop() method.
A use case (as exampke, I don't care if the states or workflow matches with
tryton's task):
You have a view (or dashboard) with two lists of tasks in different state:
one list with Current tasks (domain: state == in_progress) and other line
with Finished tasks (domain: state == close).
You can drop a record from one list to another.
If in on_drop method we recive the action of the list where the record has
been droped, we can cgange the state depending on that
For more information:
https://code.google.com/p/tryton/wiki/Drag_and_drop_between_two_lists