my solution works, I tested it :D On Sunday, September 15, 2013 2:30:06 PM UTC+2, 黄祥 wrote: > > i've followed your hints, but still not worked (no error occured). > > def __ondelete_receipt(s): > purchase_order_no=s.select().first().purchase_order_no > # for test # purchase_order_no=s.select()[0].purchase_order_no > db(db.purchase_order_header.id==purchase_order_no).update(status='Purchase > Order Authorized') > # for test # > db.purchase_order_header[s.select()[0].purchase_order_no].update_record(status='Purchase > > Order Authorized') > > db.receipt_header._before_delete.append(lambda s: __ondelete_receipt(s) ) > > any idea how to make it work? > > thanks and best regards, > stifan >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

