Add a "refresh" method in server side

Registered by Juan Márquez

e only way that I know, is by press the refresh button in GTK client or use a "on_change" call.

If we do some changes in database and we need to refresh the on screen data, we need to send the "refresh" button commad to server.

I think that is necesary to add a refresh method who can called from module code (_refresh_view).

sample code (not real case):

# whe create (by code) any invoice line
self.pool.get('account.invoice').write(cr, uid, id, {'invoice_line':(0,0,any_line)}, context=ctx)
self.pool.get('account.invoice')._refresh_view(cr, uid, id) # == press "Refresh" Button

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

How can this work? Refreshing is client-side, the code is server-side.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.