Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10886 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona

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

Risposta migliore

Is this a working solution for Odoo v15?

Im guessing the url will be the odoo database url?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 24
1533
0
mar 15
5213
2
mar 15
9794
0
mar 15
4868
1
mar 15
6001