Skip to Content
Menú
This question has been flagged
2 Respostes
10437 Vistes

We use Microsoft Word to store additional information about Customers for people who work outside of Odoo with that same Customer.


How can I link a word document to each Customer in Odoo, via a link so that when you click the link, Word opens (so you can view and edit the Word Doc)?

Avatar
Descartar
Best Answer

This is possible, provided that every user who clicks:

a) Has a copy of Microsoft Word installed on the device they click from

b) Can access a shared drive (or url) from the device they click from


You create a custom field, then populate it with something like this:

ms-word:ofe|u|file://F:/dir/filename.docx

ms-word:ofe|u|file://///server/fshare/dir/filename.docx

ms-word:ofe|u|https://www.server.com/filename.docx

.. then make the widget of the field URL so that it becomes clickable.


ofe = open for editing

ofv = open for viewing


This works for Microsoft Word, PowerPoint, Excel, Visio, Access, Project, Publisher, Sharepoint, and InfoPath.

For information on the syntax, please review https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes


Avatar
Descartar

hey ray , i try it but i get this error from microsoft office saying : "sorry .. we can't do this action , because office don't Recognize the cmd"

any help !

You can test these commands outside of Odoo, in your web browser address bar. Get the correct command there first (referring to the link for the syntax). I just pasted "ms-word:ofe|u|file://F:/dir/filename.docx" into the address bar (no http or other prefix required) and Word opened with a "Directory Name is not valid" error.

hey rey ;

i try 3 ways :

for info i have the local url of my attachement :

web/image/1334?unique=d578af77bf4bd7a054dff3b80c293649aa893917

so i did first this :

ms-word:ofe|u|http://myip@/web/image/1334?unique=d578af77bf4bd7a054dff3b80c293649aa893917.docx

in this case i get the same error : office can't recognize my commande

2- i did this ms-word:ofe|u|http://myip@/web/image/1334.docx

= word is open but not with the code values (unicode)

3- i try this also : ms-word:ofe|u|http:/myip@/web/image/d578af77bf4bd7a054dff3b80c293649aa893917.docx

= i got the same thing also , word is open but unicode values

Best Answer

Is this a working solution for Odoo v15?

Im guessing the url will be the odoo database url?

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 24
1024
0
de març 15
4829
2
de març 15
9419
0
de març 15
4586
1
de març 15
5708