on_after_apply_record¶
on_after_apply_record(self, delta, params, connection)
domain: server
language: python
class Item class
Description¶
Write on_after_apply_record event handler when you need to override the standard data saving
procedure during the execution of the apply method on the
client
or
server.
On Demo application this event is used to recalculate Invoices.
Code within Invoice Server module:
def on_after_apply_record(item, delta, params, connection):
if not delta.rec_deleted():
calc_invoice(delta, connection)