odoo lead creation

This commit is contained in:
Tobias Brunner 2025-01-27 16:51:23 +01:00
parent b98a507f65
commit 483f076d1a
No known key found for this signature in database
15 changed files with 404 additions and 27 deletions

14
hub/services/forms.py Normal file
View file

@ -0,0 +1,14 @@
from django import forms
from .models import Lead
class LeadForm(forms.ModelForm):
class Meta:
model = Lead
fields = ["name", "company", "email", "phone"]
widgets = {
"name": forms.TextInput(attrs={"class": "form-control"}),
"company": forms.TextInput(attrs={"class": "form-control"}),
"email": forms.EmailInput(attrs={"class": "form-control"}),
"phone": forms.TextInput(attrs={"class": "form-control"}),
}