Hello people,
so I've been wondering how to get value automatically on a field after the user login. Like for an example, when they access my helpdesk page, they didn't have to write their name and email on the existing field anymore because it's automatically filled whenever they login and want to submit a ticket.
Currently, my html code looks like this:
Field Name
<div class="col-md-4 text-md-right offset-lg-1 col-lg-10">
<div style="text-align: left;">
<label>
<span style="color: rgb(112, 112, 112); font-weight: 700;" for="partner_id">Name</span>
<span style="color: rgb(206, 0, 0); font-weight: 700;">*</span>
</label>
</div>
<input type="text" class="form-control o_website_form_input" id="partner_id" name="partner_id" required="1"/>
</div>
Field Email
<div class="col-md-4 text-md-right offset-lg-1 col-lg-10">
<div style="text-align: left;">
<label>
<span style="color: rgb(112, 112, 112); font-weight: 700;" for="partner_email">Email</span>
<span style="color: rgb(206, 0, 0); font-weight: 700;">*</span>
</label>
</div>
<input type="text" class="form-control o_website_form_input" id="partner_email" name="partner_email" required="1"/>
</div>
What should I add or what should I remove?
Thank you for your help :D
*notes:
I'm not really good with code so can I do it just by editing the XML (without using Python)?