odoo lead creation
This commit is contained in:
parent
b98a507f65
commit
483f076d1a
15 changed files with 404 additions and 27 deletions
14
hub/services/forms.py
Normal file
14
hub/services/forms.py
Normal 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"}),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue