crm

https://gitlab.com/kb/crm

Icon

<i class="fa fa-ticket"></i>

Initialise

For the standard view, click Settings, Display Notify List

_images/2024-06-25-settings.png

Then tick Display notify list:

_images/2024-06-25-settings-display-notify-list.png

Ticket

To re-open a complete ticket:

from crm.models import Ticket
ticket = Ticket.objects.get(pk=386)
ticket.complete = None
ticket.complete_user = None
ticket.save()

User

To create a user on the CRM:

from django.contrib.auth.models import User
user = User.objects.create_user("b.zip")
user.set_password("apples-or-oranges")
user.first_name = "B"
user.last_name = "Zip"
user.is_staff = True
user.save()

from contact.models import Contact
Contact.objects.create_contact(user=user)