<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Karan B K on Medium]]></title>
        <description><![CDATA[Stories by Karan B K on Medium]]></description>
        <link>https://medium.com/@karan.bk?source=rss-bea6be68f680------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DAiZB16t-p8tVKoGEoSKWQ.png</url>
            <title>Stories by Karan B K on Medium</title>
            <link>https://medium.com/@karan.bk?source=rss-bea6be68f680------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:51:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karan.bk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Neutralizing Custom Code in Odoo: A Simple Guide to Secure Testing Environments]]></title>
            <link>https://medium.com/@karan.bk/neutralizing-custom-code-in-odoo-a-simple-guide-to-secure-testing-environments-3e320b742fec?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e320b742fec</guid>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[odoo-implementation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 06:06:45 GMT</pubDate>
            <atom:updated>2024-12-26T06:06:45.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VeyqHqCa9vsQ2S_T9GwE9A.png" /></figure><p>A neutralized database is a non-production database on which several parameters are deactivated. This enables one to carry out tests without the risk of launching specific automated processes that could impact production data (e.g., sending emails to customers).</p><h3>Key Features Disabled in a Neutralized Database</h3><p>When creating a staging database in Odoo.sh or duplicating the database or test upgrading, Odoo disables a variety of functionalities during the neutralization process. Here’s a list of features commonly deactivated by default:</p><ul><li><strong>Planned/Scheduled Actions</strong>: Processes like automatic invoicing of subscriptions or mass mailing are archived.</li><li><strong>Outgoing Emails</strong>: Ensures no emails are accidentally sent to customers or partners.</li><li><strong>Bank Synchronization</strong>: Prevents fetching bank statements in a testing environment.</li><li><strong>Payment Providers</strong>: Disables connections to payment gateways.</li><li><strong>Delivery Methods</strong>: Prevents triggering shipping processes.</li><li><strong>IAP Tokens</strong>: Stops third-party service integrations via Odoo’s In-App Purchase (IAP) mechanism.</li><li><strong>Website Visibility</strong>: Hides the website from search engine indexing to avoid live exposure.</li></ul><blockquote><strong><em>Note:</em></strong><em> A prominent red banner appears at the top of the screen in a neutralized database to indicate that it’s a non-production environment.</em></blockquote><h3>Why Neutralizing Custom Code Matters</h3><p>While Odoo automatically neutralizes its core features, it does not handle custom developments, such as third-party integrations, custom workflows, or scripts. These can pose a significant risk if left active in a staging database, as they may inadvertently interact with production systems or sensitive data.</p><p>For example, if you’ve developed an integration that transfers files to an external SFTP server, leaving it active in a testing database could result in unintentional data transfers or disruptions. To avoid such issues, it’s essential to neutralize custom code manually.</p><h3>How can we neutralize our custom development?</h3><p>Neutralizing custom code in Odoo is simple — just create a neutralize.sql file in your custom module&#39;s data folder. Add SQL commands to deactivate configurations, like archiving SFTP settings or disabling API keys. Odoo automatically runs this file during database neutralization, ensuring your custom processes are safely deactivated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*QPe7VjLAK0KB1xv-Dsz1pw.png" /></figure><p>During database neutralization, Odoo will execute this SQL code to deactivate the FTP server configuration, ensuring a secure test environment with minimal effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e320b742fec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Obfuscate an Odoo Database for Secure Sharing with Third Parties]]></title>
            <link>https://medium.com/@karan.bk/how-to-obfuscate-an-odoo-database-for-secure-sharing-with-third-parties-86d86b9ea821?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/86d86b9ea821</guid>
            <category><![CDATA[data-encryption]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odoo-security]]></category>
            <category><![CDATA[data-protection]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Sun, 01 Dec 2024 09:42:31 GMT</pubDate>
            <atom:updated>2024-12-01T09:42:31.722Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*DAaKcZBW5TrB-D7vg5XYdA.png" /><figcaption>Source: LinkedIn.com</figcaption></figure><p>When sharing your Odoo database for testing or development purposes, protecting sensitive information is crucial. Odoo offers a built-in method to obfuscate (mask/encrypt) your data, ensuring it remains unreadable to unauthorized parties. Here’s how you can securely obfuscate your Odoo database using a simple command.</p><blockquote><strong>Note: </strong>obfuscatemethod is available from Odoo 16.0 and above.</blockquote><h3>Step 1: Connect to the Odoo Server</h3><p>If your Odoo database is hosted on a remote server, start by connecting to the server via SSH:</p><pre>ssh username@remote_server -i ~/.ssh/id_rsa</pre><p>Switch to the odoo user to ensure you have the necessary permissions:</p><pre>sudo su - odoo</pre><h3>Step 2: Obfuscate the Database</h3><p>Run the following command to obfuscate your database:</p><pre>odoo/odoo-bin --database your_database_name --pwd your_password -c /etc/odoo.conf</pre><h3>Explanation of Command Parameters</h3><ul><li>--database or -d: The name of the database you want to obfuscate.</li><li>--pwd: A password you set, which will be required later to unobfuscate the database.</li><li>-c: The path to your Odoo configuration file.</li></ul><p>When you execute the command, Odoo will prompt you to confirm the obfuscation process by entering the name of the test database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLMVj0DDy33L9SznJ1NuOg.png" /></figure><p>Once confirmed, the database will be obfuscated, and the data will appear scrambled, similar to the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lpiCsPbXqlHl2EHSOH3zUQ.png" /><figcaption>obfuscated contacts</figcaption></figure><h3>Step 3: Unobfuscate the Database</h3><p>To revert the database to its original state, use the following command with the --unobfuscate flag:</p><pre>odoo/odoo-bin --database your_database_name --pwd your_password -c /etc/odoo.conf --unobfuscate</pre><p>Once executed, refresh the database, and it will return to its original form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZoSbtG0d7x86-UAeJewNvQ.png" /><figcaption>unobfuscated contacts</figcaption></figure><h3>Which Data Does Odoo Obfuscate?</h3><p>By default, Odoo obfuscates the following tables and fields:</p><ul><li><strong>mail_tracking_value (Tracking Values):</strong></li><li>old_value_char, old_value_text, new_value_char, new_value_text</li><li><strong>res_partner (Contacts):</strong></li><li>name, complete_name, email, phone, mobile, street, street2, city, zip, vat, website</li><li><strong>res_country (Country):</strong></li><li>name</li><li><strong>mail_message (Messages):</strong></li><li>subject, email_from, reply_to, body</li><li><strong>crm_lead (Lead/Opportunity):</strong></li><li>name, contact_name, partner_name, email_from, phone, mobile, website, description</li></ul><h3>What Happens if You Modify Obfuscated Data?</h3><p>If you modify fields that are not obfuscated, the database will revert to normal without issues during unobfuscation. However, altering obfuscated fields can cause errors when reverting the database, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tySF4JS5FiAxsSizBQSLEw.png" /></figure><blockquote><strong>Note: </strong>Since tracking values and chatter messages are obfuscated, any tracked field changes during obfuscation will result in errors during unobfuscation.</blockquote><h3>Important Considerations</h3><p>While Odoo’s obfuscation feature provides a convenient way to mask sensitive data, it is not a foolproof method for ensuring complete anonymity. Exercise caution when sharing obfuscated databases outside of secure environments.</p><p>By following these steps, you can securely share your Odoo database while protecting sensitive information, ensuring a safer collaboration experience for development and testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86d86b9ea821" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo 18 Installation on Ubuntu 24.04]]></title>
            <link>https://medium.com/@karan.bk/odoo-18-installation-on-ubuntu-24-04-b568ce099fa5?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/b568ce099fa5</guid>
            <category><![CDATA[odoo-installation]]></category>
            <category><![CDATA[odoo18]]></category>
            <category><![CDATA[odoo-17]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Sun, 27 Oct 2024 20:37:05 GMT</pubDate>
            <atom:updated>2025-08-10T05:39:03.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WpgqS7-mKUEQ5P0Cp4zCzA.jpeg" /><figcaption>Source: Odoo.com</figcaption></figure><p>This blog is a step by step guide on installing Odoo 18 on Ubuntu 24.04. It can be used as a reference to installing other Odoo versions on other Ubuntu versions as well. However packages might differ based on the version.</p><ol><li><strong>Login to Ubuntu Server through SSH</strong></li></ol><p>To set up Odoo on a remote server, you must connect to that server. This can be done using <strong>ssh</strong>. However, if you’re installing it on a local system, you can skip this step.</p><pre>ssh username@remote_server -i ~/.ssh/id_rsa</pre><p><strong>2. Update Server Packages</strong></p><p>Next, we need to update and upgrade packages to the newer versions. This can be done with following commands</p><pre>sudo apt update<br>sudo apt upgrade -y</pre><blockquote>You can use either <strong><em>apt</em></strong> or<em> </em><strong><em>apt-get</em></strong> during this installation process. Here I have used <em>apt</em> only but either can be used.</blockquote><p><strong>3. Secure the Server</strong></p><p>Next, we will add the security by installing <strong>openssh-server</strong> and <strong>fail2ban</strong> packages. Installing openssh-server ensures secure remote access to your server, while fail2ban adds an extra layer of protection by actively detecting and blocking potential security threats, making your server more resilient against unauthorised access attempts.</p><pre>sudo apt install openssh-server fail2ban</pre><p>After installation, start the <strong>fail2ban</strong> service and enable it to start automatically on boot.</p><pre>sudo systemctl start fail2ban<br>sudo systemctl enable fail2ban</pre><p><strong>Verify <em>fail2ban</em> Status:</strong> To ensure that <strong>fail2ban</strong> is running correctly, you can check its status with:</p><pre>sudo systemctl status fail2ban</pre><p>Securing your server with these steps will help protect it from common threats and unauthorized access. Once your server is secured, you can proceed with the Odoo 18 installation.</p><p><strong>4. Install Packages and Libraries</strong></p><p>Since Odoo is built on Python, we need to install some dependencies and to proceed further with Odoo installation on the server. We can install them running the following commands</p><p><strong>Install Python 3 <em>pip</em></strong><em>:</em> Pip is the package installer for Python, and it’s required to manage Python libraries.</p><pre>sudo apt install python3-pip</pre><p><strong>Install Development Libraries and Dependencies:</strong> These libraries are necessary for building and running Odoo and its dependencies.</p><pre>sudo apt install -y git python3-venv python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev</pre><blockquote>The required packages, libraries, and their versions for Odoo installation may vary depending on the Odoo and Ubuntu versions. To prevent issues during installation and operation, ensure that you install the correct versions.</blockquote><p><strong>Install <em>node.js</em> and <em>npm</em>:</strong> node.js is required for various frontend tasks, and NPM is its package manager.</p><pre>sudo apt install -y npm</pre><p><strong>Create a Symlink for <em>node.js</em>:</strong> Sometimes, Node.js is installed as nodejs but some applications expect node. Create a symlink to ensure compatibility.</p><pre>sudo ln -s /usr/bin/nodejs /usr/bin/node</pre><p><strong>Install<em> less </em>and<em> less-plugin-clean-css:</em></strong> Less is a CSS pre-processor, and the clean CSS plugin helps minify CSS files.</p><pre>sudo npm install -g less less-plugin-clean-css</pre><p><strong>Install<em> node-less:</em></strong> This package integrates Less with node.js.</p><pre>sudo apt install -y node-less</pre><p><strong>5. Install and Configure PostgreSQL</strong></p><p>Odoo uses PostgreSQL as database back-end, so we need to install it. Also, we will create a PostgreSQL user named <strong>odoo18</strong>.</p><p><strong>Install<em> PostgreSQL:</em></strong> This command installs the PostgreSQL database server.</p><pre>sudo apt install postgresql -y</pre><p><strong>Switch to the PostgreSQL User:</strong> PostgreSQL uses its user account for database management. Switch to this account to create a new database user.</p><pre>sudo su - postgres</pre><p><strong>Create a new Database User<em>: </em></strong>Create a user for Odoo with permission to create databases. You’ll be prompted to enter a password for this user.</p><pre>createuser --createdb --username postgres --no-createrole --superuser --pwprompt odoo18</pre><p><strong>— createdb:</strong> Allows the user to create databases.</p><p><strong>— username postgres:</strong> Specifies the PostgreSQL superuser.</p><p><strong>— no-createrole:</strong> Prevents the user from creating roles.</p><p><strong>— superuser: </strong>Grants superuser privileges.</p><p><strong>— pwprompt:</strong> Prompts for a password for the new user.</p><p><strong>odoo18</strong>: The name of the new user.</p><blockquote>The username and password are needed on configuration file. The postgres uses a distinct system user to perform tasks.</blockquote><pre>psql<br>ALTER USER odoo18 WITH SUPERUSER;</pre><pre>\q<br>exit</pre><p><strong>6. Install Wkhtmltopdf</strong></p><p>For generating PDF reports, Odoo 18 requires a wkhtmltopdf version higher than 0.12.2. Wkhtmltopdf is an open-source command line tool to render HTML data into PDF format using Qt webkit. To install wkhtmltopdf on your Ubuntu 24.04 server, follow the steps below;</p><pre>sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb</pre><pre>sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb</pre><blockquote>Sometimes running the above command right throw below error as some dependencies (eg. libssl1.1 ) could not be installed. In this case, we need to install those dependent packages separately and then run above command.</blockquote><pre>dpkg: dependency problems prevent configuration of wkhtmltox:<br>wkhtmltox depends on libssl1.1; however:<br>Package libssl1.1 is not installed.<br>wkhtmltox depends on xfonts-75dpi; however:<br>Package xfonts-75dpi is not installed.<br>wkhtmltox depends on xfonts-base; however:<br>Package xfonts-base is not installed.</pre><blockquote>If this error is not encountered, below commands can be skipped. Else run below commands to install dependencies and then wkhtmltopdf</blockquote><pre>wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb</pre><pre>sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb</pre><pre>sudo apt --fix-broken install<br>sudo apt install xfonts-75dpi xfonts-base<br>sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb</pre><p><strong>7. Create an Odoo User</strong></p><p>We will create a new user named odoo18 with home directory /home/odoo. This prevents the security risks posed by running Odoo under the root user. You can name your user whatever you want but be careful to name same as PostgreSQL user.</p><pre>sudo useradd -m -d /home/odoo -U -r -s /bin/bash odoo18</pre><p><strong>— system:</strong> Creates a system user with a lower UID.</p><p><strong>— home=/home/odoo:</strong> Specifies the home directory for the user.</p><p><strong>— group odoo18:</strong> Creates a group with the same name and assigns the user to it.</p><p>This setup ensures that Odoo has a dedicated user and database for managing its operations securely. You’re now ready to proceed with the Odoo installation and configuration.</p><p><strong>8. Install Odoo</strong></p><p>We will clone version 18.0 from Odoo repository. This will be done with odoo17 and inside /home/odoo directory</p><pre>sudo su - odoo18<br>cd ~/home/odoo<br>git clone --branch=18.0 --depth=1 --single-branch https://www.github.com/odoo/odoo</pre><p>In this blog, we will install Odoo using python virtual environment. Run the below commands to create a virtual environment and connect to it</p><pre>python3 -m venv odoo18-venv<br>source odoo18-venv/bin/activate</pre><p>Install the necessary Python packages for Odoo 18 by using the requirements.txt file located within the odoo directory.</p><pre>pip3 install wheel<br>pip3 install -r odoo/requirements.txt<br>deactivate</pre><p><strong>9. Create a Directory for Custom Modules</strong></p><pre>mkdir /home/odoo/custom_addons</pre><p>This directory should later be added to the addons_path parameter that defines a list of directories where Odoo searches for modules. After this step, we will switch back from odoo user</p><pre>exit</pre><p><strong>10. Setup Configuration File for Odoo</strong></p><p>For Odoo to operate effectively, it needs specific information like the database user, password, addons locations, and more. While these details can be supplied when running Odoo via the command line, creating a configuration file streamlines the process, eliminating the need to provide them with each run.</p><pre>sudo nano /etc/odoo.conf</pre><blockquote>A sample of the configuration file can be found inside the odoo folder, or you can copy the content from the section below. You can find more information about the above parameters and more <a href="https://www.odoo.com/documentation/18.0/developer/reference/cli.html#running-the-server">here</a></blockquote><pre>[options]<br>addons_path = /home/odoo/odoo/addons,/home/odoo/custom_addons   <br>data_dir = /home/odoo/.local/share/Odoo<br>admin_passwd = &quot;your_admin_password&quot;<br>db_host = False<br>db_name = False       <br>db_filter=False       <br>db_password = False<br>db_port = 5432<br>db_user = odoo18<br>list_db = True<br>log_db = False<br>log_db_level = warning<br>log_handler = :INFO<br>log_level = info<br>logfile = /var/log/odoo/odoo.log</pre><blockquote>Next, grant system user odoo18 access to this config file.</blockquote><pre>sudo chown odoo18: /etc/odoo.conf<br>sudo chmod 640 /etc/odoo.conf</pre><p>Now, create a log directory for Odoo and set necessary permissions for odoo18 to access it.</p><pre>sudo mkdir /var/log/odoo<br>sudo chown odoo18: /var/log/odoo</pre><p><strong>11. Create Odoo Service File</strong></p><p>Next, we will create a systemd service file for Odoo which will help in start/stop/restart Odoo server</p><pre>sudo nano /etc/systemd/system/odoo-server.service</pre><blockquote>Copy and paste the above content. However make sure all the information are correct in case you have made changes while following this blog.</blockquote><pre>[Unit]<br>Description=Odoo18<br>Requires=postgresql.service<br>After=network.target postgresql.service<br><br>[Service]<br>Type=simple<br>SyslogIdentifier=odoo18<br>PermissionsStartOnly=true<br>User=odoo18<br>Group=odoo18<br>ExecStart=/home/odoo/odoo18-venv/bin/python3 /home/odoo/odoo/odoo-bin -c /etc/odoo.conf<br>StandardOutput=journal+console<br><br>[Install]<br>WantedBy=multi-user.target</pre><p>Finally, set the necessary permissions and start the Odoo server</p><pre>sudo chmod 755 /etc/systemd/system/odoo-server.service<br>sudo chown root: /etc/systemd/system/odoo-server.service</pre><pre>sudo systemctl start odoo-server.service</pre><p>The above command will start the odoo-server. To check the status of the odoo-server, you can use below command.</p><pre>systemctl status odoo-server.service</pre><p><strong>12. Create and Access Odoo Database</strong></p><p>If Odoo installation was successful, status will be active. Now, you can access Odoo with the following URL. It will redirect you to database create page where you can create Odoo database</p><blockquote>Odoo runs on port 8069 by default. However this can be configured from configuration file.</blockquote><pre>http://localhost_or_ip_address:8069</pre><blockquote>You can use below command to access odoo log file.</blockquote><pre>tail -f /var/log/odoo/odoo.log</pre><blockquote>You can use below command to stop odoo server</blockquote><pre>sudo service odoo-server stop</pre><blockquote>You can use below command to start odoo server</blockquote><pre>sudo service odoo-server start</pre><blockquote>You can use this command to restart odoo server</blockquote><pre>sudo service odoo-server restart</pre><p>Following these steps, Odoo 18 should be running on your Ubuntu 24.04 server, accessible via your browser, and configured to start automatically on boot.</p><p>Having successfully installed Odoo 18, this guide not only serves as a reliable reference for future Odoo 18 installations but also provides insights into installing other Odoo versions. Understanding the necessary libraries and packages, and their roles, equips you with valuable knowledge for troubleshooting related issues in the future.</p><p>I hope this blog has facilitated a smooth Odoo installation and deployment for you! You can checkout <a href="https://medium.com/@karan.bk/list/install-and-manage-odoo-7f6fe3d434fc">Install and Manage Odoo</a> for more blogs regarding installing Odoo on cloud server, manage multiple Odoo versions, configure Odoo with nginx as reverse proxy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b568ce099fa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Python Packages in Odoo.sh]]></title>
            <link>https://medium.com/@karan.bk/how-to-install-python-packages-in-odoo-sh-23af24785ff6?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/23af24785ff6</guid>
            <category><![CDATA[odoo-development]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odoosh]]></category>
            <category><![CDATA[odoo-implementation]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 09:02:32 GMT</pubDate>
            <atom:updated>2024-07-23T09:02:32.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WBN_ujAdDyEa5Xkn.png" /></figure><p>When installing a custom module in Odoo.sh, you might encounter an error indicating that required Python package(s) are missing. For example, as shown below, Library module requires <strong>gTTS </strong>to be installed;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiMYnQka-yd7RbuCh0WK_g.png" /><figcaption>This is a test module and gTTS is only used for demonstration purpose only</figcaption></figure><p>Here’s how to handle this situation effectively.</p><h3>Using the Shell to Install Python Packages</h3><p>The simplest method to install a dependent Python package is through the Shell. You can do this by navigating to the Shell and using the pip install command, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzF2qCQRitbDL6m1r30Qxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*DAdbwbEu5sGGzpQ7ywHaiA.png" /></figure><p>However, while this method works, it comes with a warning: the installed packages are not added to the PATH, and they won’t be migrated when Odoo is upgraded or Odoo server is moved.</p><h3>Recommended Approach: Using a requirements.txt File</h3><p>A more robust approach is to use a requirements.txt file to manage your Python package dependencies. Here’s how you can do it:</p><ol><li><strong>Create a </strong><strong>requirements.txt File:</strong> In your repository, create a file named requirements.txt.</li><li><strong>List the Python Packages:</strong> Add the required Python packages and their versions (if needed) in the file .</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*6sn2C-1gksp4GI6rdlZhUg.png" /></figure><p>3. <strong>Push the Changes:</strong> Use the following Git commands to add, commit, and push the changes.</p><pre>git add requirements.txt</pre><pre>git commit -m &quot;[ADD] requirements.txt&quot;</pre><pre>git push</pre><p>This process will trigger a new build in Odoo.sh, automatically installing the specified dependencies. Once the build is complete, you can proceed with installing the modules without encountering dependency issues.</p><p>By following these steps, you ensure that your Python packages are properly installed and managed, even during Odoo upgrades and migrations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23af24785ff6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will AI Replace Humans and Take Away Our Jobs?]]></title>
            <link>https://medium.com/@karan.bk/will-ai-replace-humans-and-take-away-our-jobs-e2a1de8ee270?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2a1de8ee270</guid>
            <category><![CDATA[aritificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[is-ai-taking-over-jobs]]></category>
            <category><![CDATA[ai-is-dangerous]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Mon, 20 May 2024 06:01:36 GMT</pubDate>
            <atom:updated>2024-05-26T04:45:02.084Z</atom:updated>
            <content:encoded><![CDATA[<h3>What I Learned About AI Replacing Humans from Basketball and Chariots</h3><p>Every day, as I scroll through Instagram, LinkedIn, or YouTube, I come across a new AI tool that’s outperforming humans in various tasks — whether it’s generating code, creating images, writing, singing, or other activities. If a task can be automated, it likely is being automated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*YZEsUamX5oJyvi2yjcDi3w.png" /></figure><p>Personally, I use AI too, so much that I mostly include “Free AI” in my google searches e.g Free AI logo generator, Free AI background remover etc. These tools are lifesavers, helping me get stuff done faster and even explore new areas I wouldn’t have tried before. Seriously, there’s an AI tool for practically anything these days!</p><p>However, the talk about the threat it poses to jobs is nonetheless. Social media is flooded with these clickbaity videos with scary thumbnails screaming “AI is gonna steal your job!”. As a software engineer, when I see AI models like ChatGPT, GitHub Copilot, or Gemini generating code faster and more efficiently than me, I can’t help but wonder if developers like me will soon become obsolete, forcing us to switch careers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*91Ga-tfUzHRZ6CVWy-QhHg.png" /></figure><p>Whenever I think about AI replacing humans or when someone asks if I’m worried because AI can generate code quicker than me, I always recall and tell these two stories:</p><h3>1. Why Basketball is Called Basketball</h3><p>Some time ago, I read about how basketball got its name. Here is a fun fact: in the early days, a peach basket was used as the hoop net. These baskets were attached to a pole and there was a person stationed near it, and whenever someone scored, a person had to climb up a ladder to retrieve the ball and put it back into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*e_drCkBu_8APDxSCcIWptg.png" /><figcaption>Source: <a href="https://www.britannica.com/biography/James-Naismith-on-basketball-2215550">https://www.britannica.com/biography/James-Naismith-on-basketball-2215550</a></figcaption></figure><p>But then, someone had this brilliant idea — cut the bottoms out of the baskets! No more ladder guy, problem solved. This story taught me that with each advancement, even as small as cutting the bottom of a basket eliminated the need for a person. Whether it’s the introduction of machines in factories or the printing press making scribes obsolete, advancements have always reduced the need for certain jobs. Coffee makers reduces need for barista, rise in online payments reduces the need for ATMs and security guards, and so on. AI isn’t the only job-taker in history, and it won’t be the last.</p><h3>2. How Cars Replaced Chariots</h3><p>Another interesting story is how cars replaced chariots. With the advancement of the automobile industry, cars became more popular and eventually replaced chariots entirely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2ghAzmOfNfJGaSBHuRsIA.png" /></figure><p>Chariots had charioteers who drove them. So, did cars replace the charioteers? In reality, it was car drivers who replaced them. Both chariots and cars need drivers. People who learned to drive cars secured their jobs, while those who didn’t were left behind. Thus, it wasn’t the cars that replaced the charioteers, but the drivers who adapted to the new technology.</p><p>From this story, I learned that AI itself won’t replace humans. Instead, people who know how to use AI will replace those who don’t. AI coding tools won’t replace programmers, but programmers who know how to use them effectively will. AI video editors won’t replace traditional video editors, but those who adapt and learn to use AI tools will succeed.</p><p>AI is a powerful tool, but it’s a tool, not a terminator. Instead of focusing on AI as an Artificial Intelligence, we can use AI as an Augmented Intelligence helping us in learning and growing. We should always upskill ourselves and adapt to technological changes if we don’t want to become obsolete.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2a1de8ee270" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Environment Methods in Odoo 17]]></title>
            <link>https://medium.com/@karan.bk/environment-methods-in-odoo-17-ac7c04f191af?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac7c04f191af</guid>
            <category><![CDATA[odoo-implementation]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odoo-tips]]></category>
            <category><![CDATA[odoo-development]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Thu, 16 May 2024 04:22:46 GMT</pubDate>
            <atom:updated>2024-05-16T04:22:46.938Z</atom:updated>
            <content:encoded><![CDATA[<h3>Optimise Development with Environment Methods in Odoo 17</h3><p>In Odoo, Environment stores many contextual data used by the ORM. Developers can utilize these predefined methods to access specific details from the environment and modify it to execute code accordingly. Presented below are some commonly utilized methods that enhance code readability.</p><blockquote>The following code snippets are executed within the Odoo 17 environment. Depending on the version you are using, they might differ, so refer to the official documentation for the most up-to-date information.</blockquote><h3>Useful Environment Methods</h3><ul><li><strong>env.ref(xml_id, raise_if_not_found=True)</strong></li></ul><p>The ref() method is useful for developers aiming to fetch records using XML IDs. By providing an external identifier <em>(module_name.id)</em>, this function returns the corresponding recordset. It also offers an optional parameter, <em>raise_if_not_found</em>, which defaults to True and triggers a ValueError if the external ID (<em>xml_id</em>) is not found in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLTARLNQZtvLhIRfH_RbqA.png" /></figure><ul><li><strong>env.is_superuser()</strong></li></ul><p>Use this method to verify whether the current environment operates in superuser mode. Such capability proves particularly valuable when implementing functionalities restricted to users with superuser privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sg21c3C9Pa9flfRRk5gcPA.png" /></figure><ul><li><strong>env.is_admin()</strong></li></ul><p>The <em>is_admin</em> method verifies if the current user possesses the <strong>“Access Rights”</strong> group or is in superuser mode. This proves valuable for tailoring specific features or views based on the user’s administrative role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCEz0ZCu03bp57OPxU1jLA.png" /></figure><ul><li><strong>env.is_system()</strong></li></ul><p>This method verifies if the current user possesses the “Settings” group or is in superuser mode. This proves valuable for controlling access to system settings or configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFbuSSXNBgsj2Ago_uyK1Q.png" /></figure><h3>Alter The Environment</h3><p>By adjusting the environment, you have the ability to modify the functionality and behavior of Odoo. Below are several common methods for altering the environment:</p><ul><li><strong>Model.with_context(key=value)</strong></li></ul><p>This method can be used to modify the context and include additional information within the environment. It merges the provided context seamlessly, so it will override existing keys and add new ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dvm5jQNOD_Rfid7fAghQNQ.png" /></figure><ul><li><strong>Model.with_user(res_user or ID)</strong></li></ul><p>This method proves useful when there’s a need to execute a method or access data with a different user context than the current one. It accepts the User database ID or recordset as a parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRnmLgcSGydWQ7in8C1Xdw.png" /></figure><ul><li><strong>Model.with_company(res_company or ID)</strong></li></ul><p>Certain fields in Odoo are company-dependent, meaning their values vary based on the company. One example is the Purchase Payment Term on Contact. By utilizing <em>with_company</em> and providing the company ID or recordset, you can fetch values specific to that particular company.</p><p>For example, I have set the purchase payment term of a partner as<strong> End of Following Month</strong> for San Franciso company and <strong>Immediate Payment</strong> for Chicago company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IBa1UdMtvgtCb4oJSHfnbg.png" /></figure><ul><li><strong>Model.sudo()</strong></li></ul><p>To execute tasks with superuser privileges, you can utilize <em>sudo()</em> within the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBkljx1x2yVwczlMAH6I6g.png" /></figure><blockquote>Using sudo could cause data access to cross the boundaries of record rules, possibly mixing records that are meant to be isolated (e.g. records from different companies in multi-company environments) as all security checks are skipped. So be cautious when using sudo as it may lead to un-intuitive results in methods which select one record among many - for example getting the default company, or selecting a Bill of Materials.</blockquote><p>Utilizing the Odoo environment’s methods helps you to write cleaner, adaptable code and control execution flow. This ensures tasks run with proper access rights, leading to secure and efficient Odoo applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac7c04f191af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modify Multipass Instances: Update Resources and Share Data with Instance]]></title>
            <link>https://medium.com/@karan.bk/modify-multipass-instances-update-resources-and-share-data-with-instance-c17315dd33d0?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/c17315dd33d0</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[multipass]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[software-deployment]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Tue, 07 May 2024 07:01:22 GMT</pubDate>
            <atom:updated>2024-05-07T07:01:22.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVU4vPFQNOaTcuUDu438hw.gif" /></figure><p>As I showed in previous blog <a href="https://medium.com/@karan.bk/a-beginners-guide-to-create-and-manage-ubuntu-vms-in-minutes-caa1684d9375">A Beginner’s Guide to Multipass: Create and Manage Ubuntu VMs in Minutes</a>, creating ubuntu instances is simple and straightforward. Once you deploy your instances, chances are you might need to modify them. Maybe you underestimated the resource needs or your workload has changed.</p><p>While thought of recreating the instance from scratch can be tempting, but it’s not always practical. With Multipass, its just few CLI commands and you can alter the instance setup and configuration. This blog shows how we can modify instance resources like disk, memory size or CPUs and also how data can be shared between host machine and instances.</p><h3>Modify Disk and Memory sizes</h3><p>While instance properties can be determined at launch, some of them can be updated after the instance has been created. Specifically, an instance’s memory, disk space, and the number of its CPUs are exposed via daemon settings: local.&lt;instance-name&gt;.(cpus|disk|memory).</p><p>To get the list of properties of the instances, you can use multipass get command . This will list out all the properties you can modify for available instances</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*HJM1RnwFTQrqO2wOYJgR8A.png" /></figure><p>To modify one of these properties, first stop the instance and then issue the multipass set command and set required resources as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*2VPYzWI-REjF8tPwNniE_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9x6nB-pFG1tnhQ78D9n4TA.gif" /></figure><blockquote>When increasing the disk size of an instance, the partition may not expand automatically to use the new available space. This usually happens if the partition was already full when trying to increase the disk size. In such cases, the partition must be expanded manually, as follows.</blockquote><p>Only properties of stopped, non-deleted instances can be updated, but trying to update an instance that is running, suspended, or deleted, results in an error. You can read more about modify other configuration on <a href="https://multipass.run/docs/modify-an-instance">Manage Instances</a> documentation.</p><h3>Share Data with Instance</h3><p>Sharing data between your host machine and your VMs is another common scenario. Multipass makes it convenient through simple CLI commands. There are two methods: mounting and transferring.</p><h4>Using mount (Recommended):</h4><p>This method allows your host folders to be accessible within the instance. Suppose you have a local folder named “<strong><em>local_folder</em></strong>” that you want to access on your “<strong><em>myUbuntuInstance</em></strong>” VM, simply run:</p><pre>multipass mount local_folder myUbuntuIstance</pre><p>This will mount your local folder in the instance. You can verify it using multipass info</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*jQGQkmaAJ4cwybmSCVN3AA.png" /></figure><p>You can also specify the exact path within the instance where you want the local folder to be mounted,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsJHKlUtiXwrGASAHMYGzA.png" /></figure><p>Mounts can also be defined during instance creation using the launch command with the --mount option.</p><pre>multipass launch --mount /some/local/path:/some/instance/path</pre><blockquote>You can mount as multiple directories to instances from local to instance.</blockquote><p>The umount command allows you to detach previously mounted local directories from the VM. Specify the desired path to unmount a specific directory, or omit the path to unmount all mounted directories.</p><ul><li>unmount all</li></ul><pre>multipass unmount myUbuntuInstance</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*aEw8VSLB6PbhJlmhFcTmOQ.png" /><figcaption>z</figcaption></figure><ul><li>unmount specific/folder</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*VLTp1YwZrhY1S2hvpiWPZQ.png" /></figure><h4>Using transfer (File Copying):</h4><p>This method is useful for simply copying files back and forth between host and instances. If a file is inside an instance, prefix its path with &lt;instance name&gt;:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJEHeJ4I_crJFq_zO6vz1w.png" /></figure><p>transfer file from instance to local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbiV1GPomQeY7O_40VGRpQ.png" /></figure><p>With Multipass, modifying existing Ubuntu VMs and sharing data between your host and instances is easy and straightforward. Leraging the power of CLI commands, you can efficiently manage your resources and keep your virtualized workflow running smoothly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c17315dd33d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Create and Manage Ubuntu VMs in Minutes]]></title>
            <link>https://medium.com/@karan.bk/a-beginners-guide-to-create-and-manage-ubuntu-vms-in-minutes-caa1684d9375?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa1684d9375</guid>
            <category><![CDATA[multipass]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Tue, 30 Apr 2024 07:43:11 GMT</pubDate>
            <atom:updated>2024-05-04T16:22:00.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-so9gDWK6OGNFUA-uBwNGQ.png" /></figure><h3>A Beginner’s Guide to Multipass: Create and Manage Ubuntu VMs in Minutes</h3><p>Whether you’re developing, testing or deploying your application or you have to work with different OS or some other reasons, you might have created virtual machines. Like me, you might have explored different virtualization tools such as <a href="https://www.virtualbox.org/">Oracle VirtualBox</a> or <a href="https://www.vmware.com/products/workstation-player.html">VMware Workstation</a> and downloading the OS image, allocating resources, interacting with the VM can be messy. Last year, I discovered Multipass which provides simpler and cleaner way of creating and maintaining Ubuntu instances with intuitive CLI commands.</p><p><a href="https://multipass.run/docs">Multipass</a> is a tool to generate cloud-style Ubuntu VMs quickly on Linux, macOS, and Windows. It gives you a simple but powerful CLI that allows you to quickly access an Ubuntu command line or create your own local mini-cloud. This blog will show you how easy is to be create and manage Ubuntu VMs (instances) using Multipass.</p><blockquote>Multipass is available for Linux, macOs, or Windows. To install it on your OS of choice, please follow the instructions given <a href="https://multipass.run/docs/how-to-guides">here</a>. <strong>Note:</strong> This tutorial demonstrates use on Linux, specifically Ubuntu, but the experience on any OS should be similar.</blockquote><h3>Install Multipass</h3><p>To get started with Multipass, you’ll need to install it first. Multipass is available as a <a href="https://snapcraft.io/about">snap</a> package in Linux. So, make sure you have snap installed. Verify if snap is installed or not with following command</p><pre>snap --version</pre><p>If snap is not installed, install it by running following commands</p><pre># update and upgrade the packages to latest version<br>sudo apt update<br>sudo apt upgrade -y<br><br># install snapd<br>sudo apt install snapd</pre><p>Once snap is installed successfully, install Multipass by simply running</p><pre>sudo snap install multipass</pre><p>After Multipass is installed, you can verify and check details about the Multipass with snap info command:</p><pre>snap info multipass</pre><p>If you want to uninstall/remove Multipass from the system, you can simply run</p><pre>snap remove multipass</pre><h3>Create an Ubuntu Instance</h3><p>With Multipass, all it takes is a single command multipass launch to create an instance</p><pre>multipass launch</pre><p>This creates a new ubuntu virtual machine with default settings, using the latest Ubuntu LTS (Long Term Support) version as a base image.</p><p>You can also create instance with specific OS image as well. To find out what images are available, just run</p><pre>multipass find</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9G9_ZOb3V0tY0O3QLj0eAg.png" /></figure><p>This command will display a list of all currently available images. Depending on the time you’re reading this blog, different images might be available over time.</p><p>To launch an instance with a specific image , pass the image name or alias to multipass launch . If you want to give specific name to the instance, add --name option to the command line</p><pre>multipass launch 22.04 --name myUbuntuInstance</pre><p>Running above command creates an Ubuntu 22.04 instance named <strong><em>myUbuntuInstance</em></strong>. To get more details about the instance, simply run</p><pre>multipass info myUbuntuInstance</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*tSIXRgFi2GRqJFfzmVWiTA.png" /></figure><p>By default, Multipass will assign <em>1</em><strong><em> CPU, 1GB RAM</em>, and <em>5GB disk space</em></strong>. We can specify resources explicitly as well when creating an instance</p><pre>multipass launch 22.04 --name myUbuntuInstance2 --disk 10G --memory 2G</pre><p>Above command will create an Ubuntu 22.04 instance named <strong><em>myUbuntuInstance2</em></strong> with 2GB RAM and 10GB disk space. You can verify configuration and resources with multipass info command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Kcb8iNXor2Ev3pd80OD3jA.png" /></figure><p>With multipass list command, you can view all the instances</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*YukFYcGgyLX1XD43xpLVBQ.png" /></figure><h3>Connect to the Instance</h3><p>Now, to connect to the Ubuntu instances, simply run multipass shell instance-name</p><pre>multipass shell myUbuntuInstance</pre><blockquote>This will start the instance if it is stopped or suspended and open the shell prompt. By default, you will be logged in as <strong>ubuntu</strong> user.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*1jPCQ07NMG3QKC1AerkAgw.png" /></figure><p>Now you’re connected to your Ubuntu instance. Just like any other Ubuntu installation, you can run commands and explore it. If you want to exit from the instance, simply run exit or press Cntrl+D .</p><h3>Manage Instances</h3><p>Now that you’ve created your instance, Multipass offers range commands to start, stop, restart, and even remove your instances with ease:</p><h3>Start an Instance</h3><p>To start an instance, simply run</p><pre>multipass start instance-name<br><br># starting myUbuntuInstance<br>multipass start myUbuntuInstance</pre><p>You can start multiple instances or all instances at once with following command</p><pre># start multiple instances<br>multipass start myUbuntuInstance myUbuntuInstance2<br><br># start all instances<br>multipass start --all</pre><p>To restart, just run</p><pre># restarting myUbuntuInstance<br>multipass restart myUbuntuInstance</pre><h3>Stop the Instance</h3><p>To stop the server, simply run</p><pre>multipass stop instance-name<br><br># stopping  myUbuntuInstance<br>multipass stop myUbuntuInstance</pre><p>You can stop multiple instances or all instances at once with following command</p><pre># stop multiple instances<br>multipass stop myUbuntuInstance myUbuntuInstance2<br><br># stop all instances<br>multipass stop --all</pre><h3>Remove an Instance</h3><p>You can remove an instance, either temporarily or permanently. To remove an instance temporarily i.e. move an instance to the <strong>‘recycle bin’</strong>, you can execute below command:</p><pre>multipass delete myUbuntuInstance</pre><p>Now, if you list the instances, you will see that it is actually just marked for deletion (or to put it in other words, moved to the recycle bin):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Q-6qvDvZr0U1voV7d1HKAA.png" /></figure><p>Since this instance has been marked as deleted and not deleted permanently, it can later be recovered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*HhaA-xWfua6NG58_4bjU9Q.png" /></figure><p>If you want to delete an instance permanently, you first have to delete it and then purge:</p><pre># mark the instance as deleted<br>multipass delete myUbuntuInstance<br><br># remove it permantenly<br>multipass purge</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*0e5aIVddPCpX9bvdr63UOw.png" /></figure><blockquote>The multipass purge command will permanently remove all instances deleted with the multipass delete . This will destroy all the traces of the instance, and cannot be undone.</blockquote><p>The <strong>multipass</strong> CLI (command line interface) client is used to communicate with the Multipass service to create, manage, and interact with Multipass instances using various subcommands. You can learn more about various commands available <a href="https://multipass.run/docs/multipass-cli-client">here</a> which allows you to interact with a Multipass instance.</p><p>Multipass offers a refreshingly simple and user-friendly approach to creating and managing Ubuntu virtual machines. Dive deeper into the <a href="https://multipass.run/docs">official documentation</a> to unlock the full potential of Multipass and explore advanced VM management features!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa1684d9375" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Avoid Spams and Cyber Attacks with Temporary Email Addresses]]></title>
            <link>https://medium.com/@karan.bk/avoid-spams-and-cyber-attacks-with-temporary-email-addresses-b246981155cc?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/b246981155cc</guid>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Fri, 19 Apr 2024 06:53:10 GMT</pubDate>
            <atom:updated>2024-04-19T09:30:54.202Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gs1BzQNOq8hXVX2Dsjefvw.jpeg" /></figure><p>If you’re like me who enjoys trying out various tools, services, and online platforms, you too know the annoyance of receiving spam emails, promotional messages, and potential cyber attacks. Many online forums, Wi-Fi owners, websites, and blogs require visitors to register before viewing content, posting comments, or downloading files.</p><p>If you’re concerned about using your real email address for these, the solution is to use a disposable email. A disposable email is a temporary address that automatically self-destructs after a certain period of time. <a href="https://temp-mail.org/">Temp Mail</a> is a free email service that allows to receive email and provides temporary, secure, anonymous, disposable email address that helps you avoid spam and stay safe.</p><blockquote>Disposable email addresses generated from <a href="http://temp-mail.org/">temp-mail.org</a> are destroyed after 10 minutes. Therefore, it’s not advisable to use them for creating accounts that you may need access to in the future.</blockquote><h3>How to Use it?</h3><p>Suppose you want to try out the features of tome.app but it requires you to sign up and create an account first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jvkgsOrVKAMm2q6rtw2XQ.png" /></figure><p>Instead of using your real email, simply, go to <a href="https://temp-mail.org/">https://temp-mail.org/</a> , It will generate a temporary email address for you as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kvCztaMLsp_ddeGS67LUQ.png" /></figure><p>Then copy the temporary email address and paste it into the signup form. As tome.app requires email confirmation, you’ll receive a login email in your temporary inbox to complete the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhgrbPn21OLer033kLLgyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QusZ1Q_OlvuSivvzoILjA.png" /></figure><p>Click on the <strong>Log In</strong> button in the email to continue creating your tome.app account. Use your newly-created tome.app account without having to provide your real email address.</p><p>It’s worth noting that while some websites or services may restrict the use of temporary email addresses, most of them allow it. By using disposable email addresses instead of your real one, you can stay secure online and avoid spam and clutter in your inbox from promotional and advertising emails. Enjoy surfing the internet while being safe!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b246981155cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrade Odoo.sh Database With Customizations]]></title>
            <link>https://medium.com/@karan.bk/upgrade-odoo-sh-database-with-customizations-714f2508c9cc?source=rss-bea6be68f680------2</link>
            <guid isPermaLink="false">https://medium.com/p/714f2508c9cc</guid>
            <category><![CDATA[odoo-17]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odooupgrade]]></category>
            <category><![CDATA[odoo-implementation]]></category>
            <dc:creator><![CDATA[Karan B K]]></dc:creator>
            <pubDate>Tue, 16 Apr 2024 08:17:03 GMT</pubDate>
            <atom:updated>2024-04-16T08:17:03.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2fnAkKfYrPCh9spnUPKXg.png" /></figure><blockquote>Performing database upgrade requires a certain level of expertise and an understanding of the Odoo environment and setup. Proceed with caution and ensure you have the necessary skills or seek expert assistance if needed for a successful upgrade.</blockquote><p>An upgrade is the process of moving your database from an older version to a newer supported version (e.g., Odoo 15.0 to Odoo 17.0). Regular upgrades are essential as each version comes with new and improved features, bug fixes, and security patches. Given that Odoo supports only the latest three versions, staying updated ensures access to their support and latest features.</p><p><a href="http://odoo.sh/">Odoo.sh</a> is integrated with the upgrade platform to simplify the upgrade process. With <a href="http://odoo.sh/">Odoo.sh</a>, you can easily conduct test or production upgrades directly from the platform, while also monitoring the progress every step of the way. Here’s a breakdown of the steps involved for performing upgrade using the <a href="http://odoo.sh/"><strong>Odoo.sh</strong></a><strong> Upgrade</strong> option and also handle customizations.</p><blockquote>Before performing production database upgrade, it’s important to perform a test upgrade for smoother and successful upgrade process. Make sure to conduct thorough testing to validate compatibility, functionality, and performance before proceeding with the production upgrade.</blockquote><p>For doing a test upgrade, create a new staging branch where test upgrade will be performed. Once you have a staging database, click on the <strong>Upgrade</strong> tab which you can see among branch’s setting options,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgQdZy35rh1vU1xDtpabog.png" /></figure><p>After selecting the target version, proceed by clicking on <strong>Test Upgrade</strong>. This action will initiate the upgrade process, allowing you to monitor the progress, as illustrated below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMxNzKGrGUNwI7CasvfbrQ.png" /></figure><ol><li><strong>Uploading database</strong></li></ol><p>In this stage, the latest database’s daily backup is sent to the Upgrade Service platform for processing.</p><blockquote>The l<strong>atest production daily automatic backup</strong> is sent to the upgrade platform for upgrade process. Manually created database backups cannot be transmitted for this purpose.</blockquote><p><strong>2. Upgrade process</strong></p><p>During this stage, the upgrade is processed on the Upgrade Service platform. You can check the logs for any errors. If an error occurs during the Upgrade Process stage, it could be related to the data in the current version. Therefore, analyze the issue, rectify the data, and attempt the upgrade again.</p><blockquote>As manually created backups cannot be submitted for upgrade, we may need to wait for Odoo to perform its automatic daily backup before attempting the upgrade again.</blockquote><p><strong>3. Downloading database</strong></p><p>During this stage, the upgraded database is transferred back to the <a href="http://odoo.sh/">Odoo.sh</a> platform.</p><p><strong>4. Waiting user commit</strong></p><p>During this stage, if there are any custom modules, include their upgraded versions in this branch and commit the changes (push an empty commit if you don’t have any). This will trigger a restore/update of the build and make the database accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGzzWkeWt3r-koVLgP-lrg.png" /></figure><p>After the build is generated for the upgraded database, click on <strong>‘Exit Upgrade Mode’</strong> to conclude the upgrade session.</p><p>Now, you can perform thorough testing of the upgraded version before proceeding with the production upgrade. While <a href="http://odoo.sh/">Odoo.sh</a> Upgrade option provides clear view on the process, basic technical knowledge is required for smooth and successful upgrade.</p><h3>Testing the Upgrade</h3><p>Regardless of the method used for upgrade, the final phase in the database upgrade process involves thorough testing of the upgraded database to confirm its performance, stability, and compatibility with existing applications, customizations and integrations. It is essential to spend some time testing the upgraded test database to ensure that you are not stuck in your day-to-day activities by a change in views, behavior, or an error message once the upgrade goes live.</p><p>To conduct a comprehensive test of the upgrade, consider the following aspects:</p><ul><li>Execute thorough functional testing to validate the smooth operation of critical business processes and workflows.</li><li>Verify the integration of third-party applications and customizations with the upgraded database.</li></ul><p>For more details on what to test and how, you can refer to <a href="https://www.odoo.com/documentation/17.0/administration/upgrade.html#testing-the-new-version-of-the-database">Odoo’s official documentation on testing the new version of the database</a>.</p><p>Report any discrepancies via <a href="https://www.odoo.com/help">the helpdesk</a> (<a href="https://www.odoo.com/help">https://www.odoo.com/help</a>) selecting the “test phase” option. Your ticket will be added to the upgrade tickets queue. The upgrade team will then manually adapt your script and contact you with an updated testing database version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p64ffDKf0iOJyStUaqy2cw.png" /><figcaption>source: Odoo’s documentation</figcaption></figure><p>Once all issues are resolved and you are confident that the upgraded database can be used as your main database without any issues, plan the upgrade of your production database.</p><p><strong>Conclusion:</strong></p><p>Upgrading an Odoo database demands careful planning, meticulous execution, and thorough testing to mitigate the risk of data loss and system instability. By following the step-by-step guide outlined in this blog, you can effectively navigate the database upgrade process and ensure a seamless transition to the latest version of Odoo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=714f2508c9cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>