# Cant Add Sales Representative On ODT Templates

**URL:** <https://www.dolibarr.org/forum/t/cant-add-sales-representative-on-odt-templates/25557>\
**Category:** CRM/SRM Modules\
**Tags:** Invoices, Help\
**Created:** [July 10, 2024, 1:03am UTC](https://www.dolibarr.org/forum/t/cant-add-sales-representative-on-odt-templates/25557 "2024-07-10T01:03:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davey](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/958977/32.png) [@davey](https://www.dolibarr.org/forum/u/davey)\
**Post date:** [July 10, 2024, 1:03am UTC](https://www.dolibarr.org/forum/t/cant-add-sales-representative-on-odt-templates/25557/1 "2024-07-10T01:03:15Z")

</div>

I’m using ODT template as I don’t have any knowledge in PHP. I’m trying to add Sales Representative in ODT templates but it always shows account name that I currently use. I’m using “myuser” tags:

**{myuser\_fullname}**

It always return SuperAdmin even though I’ve assign Sales Representative. Using Crabe template return the correct data, but it not showing up on my ODT template.

Actual Result:  
 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/60a45b999c064e93149af3a774ef819a807d5378.png)

---

<div class="post-metadata">

**Author:** ![umigun](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/umigun/32/7276_2.png) [@umigun](https://www.dolibarr.org/forum/u/umigun)\
**Post date:** [July 11, 2024, 9:56am UTC](https://www.dolibarr.org/forum/t/cant-add-sales-representative-on-odt-templates/25557/2 "2024-07-11T09:56:35Z")

</div>

There are a few ways, you can add the author of the proposal to the extrafield field and retrieve it with object. but you need to select it as an option from the table.

Other ways are to write modules or change the core codes of the relevant page. I think the easiest way is to automatically fetch the quote writer and then select it.  
If you want to solve it with a module, I can help you with this issue.

The solution for extrafield is below.

create an extrafield, (select from table)

[![](https://img001.prntscr.com/file/img001/PqlZvwdGSmG3BkRmyD7xqQ.jpeg) ](https://img001.prntscr.com/file/img001/PqlZvwdGSmG3BkRmyD7xqQ.jpeg)

[![](https://img001.prntscr.com/file/img001/YaOxq2rRR6O6od5ktv5z0w.jpeg) ](https://img001.prntscr.com/file/img001/YaOxq2rRR6O6od5ktv5z0w.jpeg)  
to add to your ODT document  
{object\_options\_ **propalwriter** }

---

<div class="post-metadata">

**Author:** ![davey](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/958977/32.png) [@davey](https://www.dolibarr.org/forum/u/davey)\
**Post date:** [July 13, 2024, 12:26am UTC](https://www.dolibarr.org/forum/t/cant-add-sales-representative-on-odt-templates/25557/3 "2024-07-13T00:26:02Z")

</div>

Hi, where the settings for this? I couldn’t understand because of the language.
