44
55The plugin allows integration with various Odoo apps and modules like CRM, project ...
66
7- The code is based on the [ Office Addin API] ( https://docs.microsoft.com/en-us/office/dev/add-ins/ ) and
7+ The code is based on the [ Office Addin API] ( https://docs.microsoft.com/en-us/office/dev/add-ins/ ) and
88[ the react framework] ( https://reactjs.org/ ) with typescript.
99
1010
1111## To be able to serve the add-in locally for development
1212
1313- cd to the add-in sources directory
1414- ` npm install `
15- - ` npm run-script dev-server `
15+ - ` npm run dev-server `
1616
17- ## To be able to use, test and debug the plugin with a linux OS
18-
19- - cd to the add-in sources directory
20- - ` npm install `
21- - open the ` node_modules/office-addin-dev-certs/lib/verify.js ` file
22- - inside the file, in the switch clause located in the ` getVerifyCommand() ` function add the following :
23-
24- ``` bash
25- case " linux" :
26- return ` [ -f /usr/local/share/ca-certificates/office-addin-dev-certs/${defaults.caCertificateFileName} ] && openssl x509 -in /usr/local/share/ca-certificates/office-addin-dev-certs/${defaults.caCertificateFileName} -checkend 86400 -noout` ;
27- ` ` `
28-
29- - open the ` node_modules/office-addin-dev-certs/lib/install.js` file
30- - inside the file, in the switch clause add the following:
31-
32- ` ` ` bash
33- case " linux" :
34- return ` sudo cp ${caCertificatePath} /usr/local/share/ca-certificates && sudo /usr/sbin/update-ca-certificates` ;
35- ` ` `
36-
37- # # To be able to serve the add-in
38-
39- - cd to the addin-in sources directory
40- - ` npm install`
41- - ` npm run-script build -- --env.DOMAIN=127.0.0.1:8080` (replace ` 127.0.0.1:8080` with the actual domain)
42- - serve the dist folder
4317
4418## To add the add-in in outlook for the web
4519
@@ -61,26 +35,19 @@ case "linux":
6135## Technical remarks
6236
6337### About translations
64- The plugin relies on the Odoo database to fetch translations. These translations are fetched during the login process
38+ The plugin relies on the Odoo database to fetch translations. These translations are fetched during the login process
6539and then cashed and updated at the plugin's initialization if necessary.
6640
6741Translations are provided in the ` translations_outlook.xml ` file located in each of the plugin modules
6842
6943For more details about translations see: https://github.com/odoo/mail-client-extensions/blob/master/outlook/src/utils/Translator.ts
7044
45+
7146### Prettier
7247Before committing, please run prettier to automatically format your code
73- > `npm run-script prettier`
74-
75- ### Deploy on Github Page
76- Github provides a service to host static website. It can be used to serve the files of
77- the add-in and so to serve the add-in for testing.
78-
79- First build the add-in
80- > `npm run-script build`
48+ > ` npm run prettier `
8149
82- Then replace the default domain (localhost) of the add-in by the domain of your Github Page
83- > `./replaceDomain.sh <domain>`
8450
85- Then publish it
86- > `npm run-script deploy -- -r <repository> -b <branch>`
51+ ### Documentation
52+ - https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart-yo
53+ - https://storybooks.fluentui.dev/react/?path=/docs/components-text--docs
0 commit comments