Ejemplo n.º 1
0
def productCreatedOrUpdated(sender, instance, created, **kwargs):
    if created:
        AuditRetails(created_by=instance.created_by,
                     action_type='Add ',
                     details=instance.getParsedQuery,
                     corporate=instance.corporate).save()
    else:
        AuditRetails(created_by=instance.created_by,
                     action_type='Update ',
                     details=instance.getParsedQuery,
                     corporate=instance.corporate).save()
Ejemplo n.º 2
0
def salesForceScedualCreatedOrUpdated(sender, instance, created, **kwargs):
    if created:
        AuditRetails(created_by='',
                     action_type='Add schedual',
                     details=instance.getParsedQuery,
                     corporate=instance.sales_force.corp_id).save()
    else:
        AuditRetails(created_by='',
                     action_type='Update schedual',
                     details=instance.getParsedQuery,
                     corporate=instance.sales_force.corp_id).save()
Ejemplo n.º 3
0
def formsCreatedOrUpdated(sender, instance, created, **kwargs):
    if created:
        AuditRetails(created_by='',
                     action_type='Add Forms',
                     details=instance.getParsedQuery,
                     corporate=instance.corporate).save()
    else:
        AuditRetails(created_by='',
                     action_type='Update Forms',
                     details=instance.getParsedQuery,
                     corporate=instance.corporate).save()
Ejemplo n.º 4
0
def salesForceCreatedOrUpdated(sender, instance, created, **kwargs):
    if created:
        AuditRetails(created_by=instance.created_by,
                     action_type='Insert',
                     details=instance.getParsedQuery,
                     corporate=instance.corp_id).save()

    else:
        AuditRetails(created_by=instance.created_by,
                     action_type='Update',
                     details=instance.getParsedQuery,
                     corporate=instance.corp_id).save()
Ejemplo n.º 5
0
def productGroupDeleted(sender, instance, **kwargs):
    AuditRetails(created_by=instance.created_by,
                 action_type='Delete ',
                 details=instance.getParsedQuery,
                 corporate=instance.corporate).save()
Ejemplo n.º 6
0
def salesForceScedualDeleted(sender, instance, **kwargs):
    AuditRetails(created_by='',
                 action_type='Delete schedual',
                 details=instance.getParsedQuery,
                 corporate=instance.sales_force.corp_id).save()
Ejemplo n.º 7
0
def salesForceDeleted(sender, instance, **kwargs):
    AuditRetails(created_by=instance.created_by,
                 action_type='Delete',
                 details=instance.getParsedQuery,
                 corporate=instance.corp_id).save()
Ejemplo n.º 8
0
def formsDeleted(sender, instance, **kwargs):
    AuditRetails(created_by='',
                 action_type='Delete Forms',
                 details=instance.getParsedQuery,
                 corporate=instance.corporate).save()