hi, i have a code : e.g. # ondelete_receipt_order def __ondelete_receipt_order(receipt_order): db(db.purchase_order_header.id==receipt_order.purchase_order_no).update(status='Purchase Order Authorized')
# receipt_order_header db.receipt_order_header._before_delete.append(lambda s: __ondelete_receipt_order(s.select()[0], True) ) ''' for test db.receipt_order_header._before_delete.append(lambda s: __ondelete_receipt_order(s.select()[0]) ) ''' i'm trying above code but the purchase_order_header table is not updated when i delete the receipt_order_header (no errors occured, just the purchase_order_header table is not updated). is there a way how to update the other table using _before_delete callback function? 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.