0925.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Odoo - Open Source Business Application Suite - on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Business Application Suite,Odoo,PostgreSQL,Python,Windows,Microsoft Windows,Install Odoo On Windows,Python Based Business Suite,Odoo Business Suite,Odoo On Windows,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Odoo - Open Source Business Application Suite - on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/21/2024 01:08:15 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Odoo - Open Source Business Application Suite - on Windows</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Odoo?</h2>
  26. <blockquote>Odoo is a suite of web based open source business apps. The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing &amp; Accounting, Point of Sale, Human Resources, Marketing, Manufacturing. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.<i> - <a href="https://github.com/odoo/odoo" target="_blank">https://github.com/odoo/odoo</a></i></blockquote>
  27. <h2>Installation</h2>
  28. <ol>
  29. <li>Log into the Windows device</li>
  30. <li>Download Odoo <a href="https://github.com/odoo/odoo/" target="_blank">Download</a></li>
  31. <li>Download Python <a href="https://www.python.org/downloads/" target="_blank">Download</a></li>
  32. <li>Download PostgreSQL <a href="https://www.postgresql.org/download/windows/" target="_blank">Download</a></li>
  33. <li>Download Visual Studio Build Tools <a href="https://download.visualstudio.microsoft.com/download/pr/1afa33fc-e800-4714-9e19-31b928ea2572/1fc592e65b7c697cb80f96ae2c2f7ac9e6b366fecd42d7ecb451cc9f0de89624/vs_BuildTools.exe" target="_blank">Download</a></li>
  34. <li>Run the downloaded PostgreSQL installer, accepting all the defaults</li>
  35. <li>When prompted, enter and confirm a superuser password</li>
  36. <li>Run the downloaded Python installer, making sure to check the option to add Python to the path</li>
  37. <li>Run the downloaded VS Build Tools installer</li>
  38. <li>Select Individual components from the top left &gt; Filter the list to C++ x64/x86 build tools &gt; Check the box next to the option for x64/x86 build tools (Latest)</li>
  39. <li>Filter the list to Windows SDK &gt; Check the box next to the option for the latest Windows SDK &gt; Click Install at the bottom right</li>
  40. <li>Once the installation completes close VS Build Tools installer</li>
  41. <li>Extract the downloaded Odoo .zip archive</li>
  42. <li>Rename the extracted folder to Odoo</li>
  43. <li>Cut the Odoo folder to a location it can safely run from, C:\Program Files\Odoo in this example</li>
  44. <li>Navigate into the Odoo folder &gt; Right click in the white space &gt; New &gt; Text Document</li>
  45. <li>Name the new file odoo.conf then edit it in a text editor</li>
  46. <li>Paste the following configuration into odoo.conf
  47. <p>[options]<br />
  48. db_user = odoo_rw<br />
  49. db_password = 0dooDB_rw$<br />
  50. db_name = odoo<br />
  51. db_host = localhost</p>
  52. </li>
  53. <li>Save the changes to odoo.conf</li>
  54. <li>Back in the Odoo folder, hold the SHIFT key and right click in the white space &gt; Open PowerShell window here...</li>
  55. <li>Run the following commands in PowerShell
  56. <div class="codeBlock PS"># connect to postgres<br />
  57. &amp;&#39;C:\Program Files\PostgreSQL\16\bin\psql.exe&#39; -U postgres<br />
  58. # enter the postgres seperuser password set during installation<br />
  59. # create odoo database user<br />
  60. create user odoo_rw with password &#39;0dooDB_rw$&#39;;<br />
  61. # create odoo database<br />
  62. create database odoo with encoding=&#39;UTF8&#39; template=&#39;template0&#39; owner=&#39;odoo_rw&#39;;<br />
  63. # close postgresql connection<br />
  64. exit<br />
  65. # prepare and activate the virtual environment<br />
  66. python -m venv .\odoo-venv<br />
  67. .\odoo-venv\Scripts\activate<br />
  68. # install wheel<br />
  69. pip3 install wheel<br />
  70. # install setuptools<br />
  71. pip install --upgrade setuptools<br />
  72. # install odoo<br />
  73. pip install -r requirements.txt<br />
  74. # run odoo<br />
  75. python .\odoo-bin --config .\odoo.conf -i base</div>
  76. </li>
  77. <li>Open a web browser and navigate to http://DNSorIP:8069</li>
  78. <li>Login with the username admin and password admin</li>
  79. <li>Click the user icon at the top right corner of the screen &gt; Preferences</li>
  80. <li>Update the Email and Email Signature &gt; Click Save</li>
  81. <li>Click the Account Security tab &gt; Click the Change Password button</li>
  82. <li>Enter admin as the current password &gt; Click Confirm Password</li>
  83. <li>Enter and confirm a new password &gt; Click Change Password</li>
  84. <li>Login using the updated email address and password</li>
  85. <li>Welcome to Odoo</li>
  86. </ol>
  87. <h2>Run Odoo on System Startup (Optional, but recommended)</h2>
  88. <ol>
  89. <li>Press CTRL + C to kill the running Odoo process</li>
  90. <li>Open a text editor and paste the following
  91. <p>:: Start Odoo server<br />
  92. cd /D &quot;%~dp0&quot;<br />
  93. start &quot;odoo&quot; /b python .\odoo-bin --config .\odoo.conf</p>
  94. </li>
  95. <li>Save the file as odoo.bat in the Odoo directory, C:\Program Files\Odoo in this example</li>
  96. <li>Click on the Start Button &gt; Type task &gt; Launch Task Scheduler</li>
  97. <li>Right click the Task Scheduler Library folder in the left pane &gt; Create Basic Task...</li>
  98. <li>Set the name to Odoo and optionally set a Description &gt; Click Next</li>
  99. <li>For the Trigger, select When the computer starts &gt; Click Next</li>
  100. <li>For the Action, select Start a program &gt; Click Next</li>
  101. <li>Complete the form fields as follows:
  102. <p>Program/script: &quot;%ProgramFiles%\Odoo\odoo.bat&quot;<br />
  103. Add arguments:<br />
  104. Start in: &quot;%ProgramFiles%\Odoo&quot;</p>
  105. </li>
  106. <li>Click Next</li>
  107. <li>Check the Open the Properties dialog checkbox &gt; Click Finish</li>
  108. <li>In the Properties dialog, click the Change User or Group... button</li>
  109. <li>Type System in the Object name field &gt; Click OK</li>
  110. <li>Check the Run with highest privileges box</li>
  111. <li>Click OK to create the scheduled task</li>
  112. <li>Right click the Odoo task &gt; Run</li>
  113. <li>Refresh the open web browser to verify Odoo is now running from the scheduled task</li>
  114. </ol>
  115. <p>Source: <a href="https://www.odoo.com/documentation/17.0/administration/on_premise/source.html" target="_blank">https://www.odoo.com/documentation/17.0/administration/on_premise/source.html</a></p> </div>
  116. </div>
  117. </body>
  118. </html>