Imported new function to our view.py
Imported Vendor model because of the new function.
Imported function for sending mail if we face a new vendor.
Created a function to get the e-mail from the vendor number.
If the record exists in our db the callback will return the e-mail and
will put it in the mil field, otherwise an exception is raised and a mail
is sent to admin informing the we face a new entry and we need to update
the db.
The entire process could be automated but for now I decided to not implement
this possibility.
Getting the e-mail from the number.
When the vendor number is inserted a quick check if the number has the right length
is performed, if passed we first try to get the email from the db, if there is no match
a mail is sent to admin and a message "no mail in our db" is put into the mail field.