<?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 Ahmed Muhumed on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Muhumed on Medium]]></description>
        <link>https://medium.com/@ahmedmuhumed?source=rss-5cdac398e948------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Nhfok6C4IunnMwMckIWFWQ.png</url>
            <title>Stories by Ahmed Muhumed on Medium</title>
            <link>https://medium.com/@ahmedmuhumed?source=rss-5cdac398e948------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:43:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedmuhumed/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[Git Grep Command]]></title>
            <link>https://medium.com/@ahmedmuhumed/git-grep-command-c6682da0dbb3?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6682da0dbb3</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[grep]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-grep]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 18:00:49 GMT</pubDate>
            <atom:updated>2024-09-04T18:01:17.974Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever worked on a large codebase, you know how challenging it can be to find specific pieces of code, especially when they are buried deep within files. This is where<strong> git grep</strong> becomes an invaluable tool for developers. It’s a powerful command-line utility that allows you to search through your Git repository’s files for specific patterns, making it easy to locate code, comments, or anything else you need to find.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FmEd514B7mfgZH1KN_YAPA.png" /></figure><p>In this post, we’ll explore the `git grep` command, discuss its most useful options, and provide examples to illustrate how it can be used effectively.</p><h4><em>What is </em><strong><em>git grep</em></strong><em>?</em></h4><p><strong><em>git grep</em></strong> is a command used to search for strings in the files tracked by Git. Unlike the regular <strong>grep</strong> command, <strong><em>git grep</em></strong> is Git-aware, meaning it only searches through files that are part of your repository. This makes it faster and more efficient when searching within a codebase managed by Git.</p><p><strong>Basic Syntax</strong></p><p>The basic syntax of <strong><em>git grep</em></strong> is:</p><pre>git grep [options] &lt;pattern&gt;</pre><p>Here, &lt;<strong><em>pattern</em></strong>&gt; is the string or regular expression you want to search for.</p><p><strong>Examples of git grep in Action</strong></p><p><em>1. Simple String Search</em></p><p>To search for a specific string in your repository, use the following command:</p><pre>echo &#39;print(&quot;Hello, World!&quot;)&#39; &gt;&gt; greetings.py<br>git add greetings.py<br>git commit -m &quot;Add greetings.py&quot;<br>git grep &quot;Hello&quot;</pre><p>This will search for <strong><em>Hello</em></strong> in all files tracked by Git.</p><pre>greetings.py:    print(&quot;Hello, World!&quot;)</pre><p><em>2. Case-Insensitive Search</em></p><p>If you want to perform a case-insensitive search, you can use the `-i` option:</p><pre>git grep -i &quot;Hello&quot;</pre><p>This will return matches for `Hello`, `hello`, `HELLO`, etc.</p><p><em>3. Search in a Specific Branch</em></p><p>You can search within a specific branch by specifying the branch name before the pattern:</p><pre>git grep &quot;Hello&quot; main</pre><p>This searches for `<strong><em>Hello</em></strong>` in the `<strong><em>main</em></strong>` branch.</p><p><em>4. Search in a Specific Directory</em></p><p>If you want to limit your search to a specific directory, you can do so by specifying the directory after the pattern:</p><pre>git grep &quot;Hello&quot; src/</pre><p>This will only search for `<strong>Hello</strong>` in the `<strong>src</strong>/` directory.</p><p><em>5. Search for a Pattern in a Specific Commit</em></p><p>You can also search for a pattern in a specific commit by using the commit hash:</p><pre>git grep &quot;Hello&quot; &lt;commit_hash&gt;</pre><p>Replace `&lt;<strong>commit_hash</strong>&gt;` with the actual hash of the commit.</p><p><em>6. Show Context Lines</em></p><p>To view the lines surrounding the matching line, you can use the `-C` option followed by the number of context lines you want:</p><pre>git grep -C 3 &quot;Hello&quot;</pre><p>This will show three lines of context before and after each match.</p><p><em>7. Count the Number of Matches</em></p><p>If you’re only interested in knowing how many matches there are, you can use the `-c` option:</p><pre>git grep -c &quot;Hello&quot;</pre><p>This will return the number of matches found in each file.</p><p><em>8. List Files with Matches</em></p><p>To list only the filenames that contain matches, without showing the actual lines, use the `-l` option:</p><pre>git grep -l &quot;Hello&quot;</pre><p>This will return a list of files that contain `<strong>Hello</strong>`.</p><p><em>9. Search for a Pattern in Untracked Files</em></p><p>To search in untracked files as well, you can use the ` — untracked` option:</p><pre>git grep &quot;Hello&quot; - untracked</pre><p>This will include untracked files in the search.</p><p>`<strong>git grep</strong>` is a powerful tool that can significantly speed up your development process by making it easier to locate specific pieces of code within your Git repository. Whether you’re searching for a function name, a specific comment, or a particular string, `git grep` has the flexibility and power to help you find what you need quickly and efficiently.</p><p>By mastering the examples provided in this guide, you’ll be well-equipped to leverage `git grep` in your daily workflow, saving you time and making your searches more effective.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6682da0dbb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Filter Databases in Odoo Using dbfilter]]></title>
            <link>https://medium.com/@ahmedmuhumed/how-to-filter-databases-in-odoo-using-dbfilter-388dba1bc291?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/388dba1bc291</guid>
            <category><![CDATA[database-odoo]]></category>
            <category><![CDATA[dbfilter]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odoo-database-filter]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Mon, 15 Apr 2024 12:21:24 GMT</pubDate>
            <atom:updated>2024-04-15T12:21:24.696Z</atom:updated>
            <content:encoded><![CDATA[<p>The dbfilter option in Odoo allows you to specify a regular expression pattern to filter databases based on their name. This feature comes in handy when you want to restrict access to certain databases while allowing access to others.</p><p>To set up dbfilter, follow these steps:</p><ul><li><strong>Locate your Odoo configuration file</strong>: The Odoo configuration file is usually named odoo.conf and is located in the Odoo installation directory.</li><li><strong>Open the configuration file</strong>: Use a text editor to open the odoo.conf file.</li><li><strong>Add dbfilter configuration</strong>: Inside the configuration file, locate the [options] section. Add the following line:</li></ul><pre>dbfilter = ^(your_db_name)$</pre><p>Or you can also use this other technique</p><pre>dbfilter = ^your_db_name$</pre><p>Replace (your_db_name) with your desired regular expression pattern. This pattern will be used to match the database names.</p><ul><li><strong>Restart Odoo</strong>: After making changes to the configuration file, restart your Odoo instance to apply the new configuration.</li></ul><p><strong>Example: Filtering a Specific Database</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*UcQTX0JQ3VaV59HtXX2Lxw.png" /></figure><p>Suppose you have an Odoo instance with multiple databases test1and test2, and you want to allow access only to a database named test1. Here&#39;s how you can set up dbfilter for this scenario:</p><pre>dbfilter = ^(test1)$</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*o8LAq2v3BQpU89HiQYmT1Q.png" /><figcaption>filtering specific database (test1)</figcaption></figure><p><em>And also you can use the ‘or’ option to specify the exact number of database</em></p><pre>dbfilter = ^(test1)$|^(test1)$</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6DTkDBLpr_FTgxQjZuSbVA.png" /><figcaption>filtering two databases using or (|)</figcaption></figure><p>One can set dbfilter on the basis of subdomain and host.</p><pre>dbfilter = ^%h$   //Based on the host.</pre><p>When the hostname is the dbfilter one should make sure that the name of the database should be the same as the complete hostname.</p><p>Follow for more, Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=388dba1bc291" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model Types in Odoo: Model vs. TransientModel vs. AbstractModel]]></title>
            <link>https://medium.com/@ahmedmuhumed/model-types-in-odoo-model-vs-transientmodel-vs-abstractmodel-47526091b386?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/47526091b386</guid>
            <category><![CDATA[odoo-models]]></category>
            <category><![CDATA[transientmodel]]></category>
            <category><![CDATA[model]]></category>
            <category><![CDATA[abstract-models]]></category>
            <category><![CDATA[odoo-development]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 11:42:07 GMT</pubDate>
            <atom:updated>2024-04-12T11:42:51.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qa5iSYMCUdSD-L7WD5g4uQ.png" /></figure><p>In the Odoo framework, defining data models is fundamental for structuring and managing your application’s data. Odoo provides three primary types of model classes: Model, TransientModel, and AbstractModel. Each type serves distinct purposes and has its own characteristics. In here, we’ll delve into each type, explore their differences, and provide examples to illustrate their usage.</p><h3>Model</h3><p>The Model class in Odoo is the most commonly used type for defining persistent data structures. It corresponds directly to a database table, with instances of the model representing records in that table. Here’s an example of defining a Product model in Odoo:</p><pre>from odoo import models, fields<br><br>class Product(models.Model):<br>    _name = &#39;my_module.product&#39;  # Database table name<br>    <br>    name = fields.Char(string=&#39;Name&#39;, required=True)<br>    description = fields.Text(string=&#39;Description&#39;)<br>    price = fields.Float(string=&#39;Price&#39;)</pre><p>In this example, the Product model represents products in our system, with fields such as name, description, and price. Instances of this model will be stored in the database.</p><h3>TransientModel</h3><p>TransientModel, on the other hand, is designed for handling temporary data that doesn’t need to be persisted in the database. Instances of TransientModel exist only in memory during the session and are not stored in the database. Let’s consider an example of a transient model for a wizard in Odoo:</p><pre>from odoo import models, fields<br><br>class Wizard(models.TransientModel):<br>    _name = &#39;my_module.wizard&#39;<br>    <br>    name = fields.Char(string=&#39;Name&#39;, required=True)<br>    description = fields.Text(string=&#39;Description&#39;)<br>    date = fields.Date(string=&#39;Date&#39;)</pre><p>In this example, the Wizard model is used for creating a transient wizard in Odoo. The data entered in this wizard won&#39;t be stored in the database; it&#39;s transient and exists only during the session.</p><h3>AbstractModel</h3><p>AbstractModel serves as a blueprint for other models and cannot be instantiated on its own. It’s designed for defining common fields and methods that can be shared among multiple models. Let’s define an abstract model with common fields:</p><pre>from odoo import models, fields<br><br>class CommonFields(models.AbstractModel):<br>    _name = &#39;my_module.common_fields&#39;<br>    <br>    name = fields.Char(string=&#39;Name&#39;, required=True)<br>    description = fields.Text(string=&#39;Description&#39;)</pre><p>In this example, CommonFields is an AbstractModel defining common fields like name and description. Other models can inherit from this abstract model to reuse these fields:</p><pre>class Product(models.Model):<br>    _name = &#39;my_module.product&#39;<br>    _inherit = &#39;my_module.common_fields&#39;<br>    <br>    price = fields.Float(string=&#39;Price&#39;)</pre><p>Here, the Product model inherits from CommonFields, automatically gaining the fields defined in CommonFields.</p><p>Please encourage by clapping the post and follows us for more, thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47526091b386" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo NGINX Configuration as a Reverse Proxy: A Simple Way]]></title>
            <link>https://medium.com/@ahmedmuhumed/odoo-nginx-configuration-as-reverse-proxy-a-simple-way-0c0dc787b058?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c0dc787b058</guid>
            <category><![CDATA[odoo-nginx]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[odoo-nginx-configuration]]></category>
            <category><![CDATA[reverse-proxy]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 18:23:43 GMT</pubDate>
            <atom:updated>2024-04-12T12:26:01.929Z</atom:updated>
            <content:encoded><![CDATA[<p>NGINX is a powerful web server renowned for its efficiency and versatility. In this guide, we’ll walk you through configuring NGINX as a reverse proxy for your Odoo deployment, enhancing performance and security.</p><p>Step 1: Installing NGINX</p><p>Let’s start by installing NGINX on your Ubuntu server:</p><pre>sudo apt update<br>sudo apt install nginx -y</pre><p>Step 2: Removing Default NGINX Configurations</p><p>To prevent conflicts, remove the default NGINX configurations:</p><pre>sudo rm /etc/nginx/sites-available/default<br>sudo rm /etc/nginx/sites-enabled/default</pre><p>Step 3: Creating a New NGINX Configuration for Odoo</p><p>Navigate to the NGINX sites-available directory and create a new configuration file for Odoo:</p><pre>cd /etc/nginx/sites-available<br>nano odoo_nginx.conf</pre><p>Insert the following configuration, replacing `your_domain` with your actual domain name:</p><pre>server {<br> listen 80;<br> server_name your_domain;<br>location / {<br> proxy_pass http://127.0.0.1:8069;<br> }<br>}</pre><p>Step 4: Enabling the NGINX Configuration</p><p>Create a symbolic link to enable the Odoo NGINX configuration:</p><pre>sudo ln -s /etc/nginx/sites-available/odoo_nginx.conf /etc/nginx/sites-enabled/odoo_nginx.conf</pre><p>Step 5: Checking NGINX Configuration and Restarting</p><p>Ensure your NGINX configuration is correct:</p><pre>sudo nginx -t</pre><p>If no errors are reported, restart NGINX:</p><pre>sudo service nginx restart</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c0dc787b058" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo Developer Roadmap]]></title>
            <link>https://medium.com/@ahmedmuhumed/odoo-developer-roadmap-4064585a3eed?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/4064585a3eed</guid>
            <category><![CDATA[developer-roadmap]]></category>
            <category><![CDATA[odoo-development]]></category>
            <category><![CDATA[master-odoo]]></category>
            <category><![CDATA[odoo-developer-roadmap]]></category>
            <category><![CDATA[odoo]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 08:50:58 GMT</pubDate>
            <atom:updated>2024-03-10T09:12:08.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xfm0Z6LgToP3-97CVPp9uw.png" /></figure><p><strong>Odoo</strong> is an open-source enterprise resource planning (ERP) software suite that includes a wide range of business applications. Originally known as OpenERP, Odoo was rebranded in <strong>2014</strong> to reflect its broader scope beyond ERP. It is developed and maintained by the Belgian company<strong> Odoo S.A.</strong></p><p>In today’s tough business world, companies always look for new ways to make their work easier, do things better, and get more stuff done. Odoo is a big player in the world of business software that helps with planning and managing everything. It has a bunch of useful tools that all work together, making it simpler for businesses to run smoothly. Odoo has really changed how businesses do their work and made a big impact on the business software market.</p><p>Learning the development of Odoo in 2024 can be a valuable and strategic decision for several reasons:</p><ol><li><strong>Growing Demand for ERP Solutions: </strong>Enterprise Resource Planning (ERP) solutions, like Odoo, continue to be in high demand as businesses seek comprehensive platforms to manage and streamline their operations.</li><li><strong>Open-Source and Cost-Effective: </strong>Odoo is an open-source platform, making it cost-effective for businesses compared to proprietary ERP solutions.</li><li><strong>Versatility and Flexibility: </strong>Odoo’s modular architecture allows developers to create customized solutions tailored to specific business needs.</li><li><strong>Python Programming Language: </strong>Odoo is primarily built using the Python programming language.</li><li><strong>Career Opportunities: </strong>Being proficient in Odoo development can lead to various career opportunities, including roles as Odoo developers, consultants, business analysts, or project managers.</li></ol><h3><strong>Odoo Developer Roadmap</strong></h3><p>In order to get a simple roadmap for odoo development, let’s first understand the structure and foundations of Odoo and its core technologies.</p><p>Odoo follows a <a href="https://en.wikipedia.org/wiki/Multitier_architecture">multitier architecture</a>, meaning that the presentation, the business logic and the data storage are separated. More specifically, it uses a three-tier architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*AsLRkZYfKtE-tz167vCD9w.png" /><figcaption>Sourec: Wikipedia</figcaption></figure><p>The presentation tier is a combination of HTML5, JavaScript and CSS. The logic tier is exclusively written in Python, while the data tier only supports PostgreSQL as an RDBMS.</p><p>Now, we understood the core of Odoo and its structure, So here is the simplest roadmap that developers can go.</p><h4>1. Mastering Python:</h4><p>Python serves as the backbone of Odoo development, making it essential for developers to have a solid grasp of the language. Start by familiarizing yourself with basic Python concepts such as data types, control structures, and functions. As you progress, delve deeper into advanced topics like object-oriented programming, decorators, and context managers.</p><p>Here are some links where you learn and master Python freely:</p><ul><li><a href="https://www.youtube.com/watch?v=YYXdXT2l-Gg&amp;list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7"><strong><em>Python Programming Beginner Tutorials</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=bY6m6_IIN94&amp;list=PLi01XoE8jYohWFPpC17Z-wWhPOSuh8Er-"><strong><em>Learn Python with Socratica</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=eWRfhZUzrAc&amp;list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB&amp;index=1&amp;pp=iAQB"><strong><em>Python for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=HGOBQPFzWKo&amp;list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB&amp;index=2&amp;pp=iAQB"><strong><em>Intermediate Python Programming Course</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=8DvywoWv6fI&amp;list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB&amp;index=4"><strong><em>Python for Everybody — Full University Python Course</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=Ej_02ICOIgs&amp;list=PLWKjhJtqVAbnqBxcdjVGgT3uVR10bzTEB&amp;index=4"><strong><em>Object Oriented Programming with Python — Full Course for Beginners</em></strong></a></li></ul><h4>2. Odoo Framework:</h4><p>Before diving into development, it’s crucial to understand the fundamentals of the Odoo framework. Explore Odoo’s architecture, including models, views, and controllers, to gain insight into how data is structured and manipulated within the system. Familiarize yourself with Odoo’s modular approach and its extensibility through custom modules.</p><p>Here are some links where you learn and master Odoo development freely:</p><ul><li><a href="https://www.youtube.com/watch?v=DKxwcMxV02U&amp;list=PLqRRLx0cl0hoZM788LH5M8q7KhiXPyuVU"><strong><em>Odoo 15 Development Tutorials by Odoo Mates</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=pFRL8XXV77o&amp;list=PLeJtXzTubzj9J5CpaL1Ry--Lvx-mVZJIW"><strong><em>Odoo 16 Development Tutorials by Cybrosys</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=rD7Efu-dhCs&amp;list=PLAR8TpPnVeTQi9q1vca1c52rnITF7wtwM"><strong><em>Odoo Development Technical Training by WebLearns</em></strong></a></li></ul><h4>3. Database Management:</h4><p>A deep understanding of PostgreSQL, the database management system used by Odoo, is essential for effective development. Learn how to interact with the database using Odoo’s Object-Relational Mapping (ORM) layer, and explore techniques for optimizing database queries and transactions.</p><ul><li><a href="https://www.youtube.com/watch?v=qw--VYLpxG4&amp;t=2748s&amp;pp=ygUTcG9zdGdyZXMgIHR1dG9yaWFscw%3D%3D"><strong><em>Learn PostgreSQL Tutorial — Full Course for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=SpfIwlAYaKk&amp;pp=ygUTcG9zdGdyZXMgIHR1dG9yaWFscw%3D%3D"><strong><em>PostgreSQL Tutorial for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=-g8rVKZsVEE&amp;list=PL0hSJrxggIQrz5OKtnaFuPiyMDTXUF5J1"><strong><em>Postgres Tutorial — Beginners to Advanced</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=jNq5EAb2biY&amp;list=PLk1kxccoEnNEtwGZW-3KAcAlhI_Guwh8x"><strong><em>PostgreSQL Tutorials : Learn PostgreSQL From Beginning to Advanced(Beginner’s List)</em></strong></a></li></ul><p>Along with these fundamentals areas of Odoo development, and as norm, every developer should have the knowledge of <strong><em>Linux Operating System</em></strong>, <strong><em>Git &amp; Github for version control and collaboration tools, basics of DevOps.</em></strong></p><p>Here are some helpful links according to above things.</p><ul><li><a href="https://www.youtube.com/watch?v=ROjZy1WbCIA&amp;t=44s&amp;pp=ygUSbGludXggY3Jhc2ggY291cnNl"><strong><em>Linux Operating System — Crash Course for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=sWbUDq4S6Y8&amp;pp=ygUSbGludXggY3Jhc2ggY291cnNl"><strong><em>Introduction to Linux — Full Course for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=ZtqBQ68cfJc&amp;pp=ygUSbGludXggY3Jhc2ggY291cnNl"><strong><em>The 50 Most Popular Linux &amp; Terminal Commands — Full Course for Beginners</em></strong></a></li><li><a href="https://www.youtube.com/watch?v=RGOj5yH7evk&amp;t=366s&amp;pp=ygUQZ2l0IGNyYXNoIGNvdXJzZQ%3D%3D"><strong><em>Git and GitHub for Beginners — Crash Course</em></strong></a></li></ul><h4>4. Advancing Your Skills:</h4><ul><li><strong><em>API integration </em></strong>— Explore Odoo’s API offerings to facilitate seamless integration with external systems and services. Learn how to interact with Odoo’s API using RESTful, and implement robust error handling mechanisms to ensure data integrity and reliability.</li><li><strong><em>Frontend Customization</em></strong> — Enhance the user experience by customizing Odoo’s frontend interfaces. Dive into QWeb templating to design dynamic and responsive views, and leverage JavaScript frameworks like Vue.js or React to implement interactive client-side components.</li></ul><p>In conclusion, every developer with an enthusiasm in odoo development should have these:</p><ul><li>Deepen Python Proficiency (Object-Oriented Python Programming)</li><li>Odoo Architecture Mastery (Models, Views, Controllers, Security Files, etc.)</li><li>Optimize Database Management (PostgreSQL Database)</li><li>Git and Github</li><li>Linux Operating System.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4064585a3eed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Git Basics in 3 Minutes]]></title>
            <link>https://medium.com/@ahmedmuhumed/learn-git-basics-in-3-minutes-8a6c038e544f?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a6c038e544f</guid>
            <category><![CDATA[git-add]]></category>
            <category><![CDATA[git-commit]]></category>
            <category><![CDATA[commit]]></category>
            <category><![CDATA[git-basics]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 18:49:24 GMT</pubDate>
            <atom:updated>2024-03-01T18:49:24.807Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to Git, the version control system that empowers collaborative software development, understanding the inner workings of your project is key. In this blog post, we’ll explore the anatomy of a Git repository, shedding light on the working directory, staging area, and commit history.</p><h3>The Working Directory: Your Digital Workbench</h3><p>Imagine your project folder as a bustling workbench where creativity and development flourish. This is your <strong>working directory</strong>. It’s the space where files are born, edited, and sometimes bid farewell. Any changes you make within this directory, whether it’s crafting new files, editing existing ones, or waving goodbye to outdated ones, all happen here.</p><h3>The .git Folder: Repository’s Command Center</h3><p>Now, let’s unveil the hidden hero — the <strong>.git folder</strong>. This is the command center of your Git repository. Within it, two essential components come to life: the staging area and the commit history.</p><h4>Staging Area: Where Drafts Take Shape</h4><p>Think of the staging area as your rough draft space. Once you’ve finished sculpting a file in your working directory, it’s time to showcase it in the staging area. Execute the git add command, and voilà, your file is now in the limelight, poised for the next act.</p><h4>Commit History: Your Project’s Time Capsule</h4><p>Every project has a story, and Git captures it in the <strong>commit history</strong>, housed within the objects folder. A commit is more than just a save point; it’s a version of your project with a distinct identity represented by a 40-character hash. This hash becomes the commit’s name, a unique identifier in the vast sea of project versions.</p><h3>The Git Workflow: Adding Files to the Repository</h3><p>So, how does a file transition from inception to being part of your project’s history? Let’s break it down:</p><ol><li><strong>Creation in Working Directory:</strong> You birth a file within your project folder (working directory).</li><li><strong>Staging Area Entry:</strong> With your file ready for the limelight, the git add command catapults it into the staging area.</li><li><strong>Committing to History:</strong> Finally, the grand finale — the git commit command immortalizes your staged changes into a commit, etching a new chapter in your project&#39;s history.</li></ol><p>Let’s say you’re crafting a web application. You create a new HTML file (index.html) in your working directory. To add it to the repository:</p><pre>touch index.html</pre><p><strong>Staging Area Entry:</strong></p><pre>git add index.html</pre><p><strong>Committing to History:</strong></p><pre>git commit -m &quot;Initial commit - Added index.html&quot;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a6c038e544f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Vs SVN]]></title>
            <link>https://medium.com/@ahmedmuhumed/git-vs-svn-05115cd28415?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/05115cd28415</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[distributed-vc]]></category>
            <category><![CDATA[centralized-vcs]]></category>
            <category><![CDATA[svn]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 15:23:06 GMT</pubDate>
            <atom:updated>2024-03-01T15:23:06.269Z</atom:updated>
            <content:encoded><![CDATA[<p>The main differences between Git (distributed) and SVN (centralized) lie in their architecture and the way they handle version control.</p><p><strong>Git: Distributed Version Control System (DVCS)</strong></p><ol><li><strong><em>Repository Structure:</em></strong></li></ol><ul><li>Each user has a full copy of the entire repository, including the history and all branches.</li><li>This allows users to work independently and without constant connection to a central server.</li></ul><p><strong>2. <em>Branching</em>:</strong></p><ul><li>Branching is lightweight and easy to create. Developers can create branches for new features or bug fixes without affecting the main branch.</li><li>Supports merging branches efficiently.</li></ul><p><strong><em>3. Offline Work:</em></strong></p><ul><li>Users can work offline since they have a complete copy of the repository.</li><li>Commits can be made locally and then pushed to the central repository when a network connection is available.</li></ul><p><strong>4. <em>Performance</em>:</strong></p><ul><li>Git is known for its speed and efficiency, particularly in operations like branching and merging.</li></ul><p><strong><em>5. Popular Usage:</em></strong></p><ul><li>Widely adopted in the open-source community and for private projects.</li><li>GitHub, GitLab, and Bitbucket are popular platforms that host Git repositories.</li></ul><p><strong>SVN (Subversion): Centralized Version Control System (CVCS)</strong></p><ol><li><strong><em>Repository Structure:</em></strong></li></ol><ul><li>There is a single centralized repository that contains the entire version history.</li><li>Users typically check out a portion of the repository to work on, rather than having a complete copy.</li></ul><p><strong><em>2. Branching:</em></strong></p><ul><li>Branches are more heavyweight compared to Git. Creating branches involves copying directories, which can be slower.</li></ul><p><strong><em>3. Offline Work:</em></strong></p><ul><li>Users need a connection to the central server for most operations, limiting offline work capabilities.</li><li>Commits and updates are directly performed on the central repository.</li></ul><p><strong><em>4. Performance:</em></strong></p><ul><li>Can be slower for certain operations compared to Git, especially as the repository size grows.</li></ul><p><strong><em>5. Popular Usage:</em></strong></p><ul><li>Still used in some enterprise settings and legacy projects.</li><li>Collaborative development can be more centralized and controlled.</li></ul><p>In summary, Git’s distributed nature allows for greater flexibility, collaboration, and efficiency in handling different aspects of version control, while SVN operates under a centralized model with more limitations in terms of branching, offline work, and performance. The choice between Git and SVN often depends on the specific needs and preferences of the development team and the nature of the project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05115cd28415" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Relational Fields in Odoo]]></title>
            <link>https://medium.com/@ahmedmuhumed/relational-fields-in-odoo-cb6cc9755dea?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb6cc9755dea</guid>
            <category><![CDATA[many2one]]></category>
            <category><![CDATA[odoo-development]]></category>
            <category><![CDATA[many2many]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[odoo]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 08:36:45 GMT</pubDate>
            <atom:updated>2023-10-25T08:36:45.640Z</atom:updated>
            <content:encoded><![CDATA[<p>Relational fields are a fundamental concept in Odoo. These fields enable you to establish relationships between different models (database tables), helping you structure and organize your data effectively. In this article, we’ll explore the various types of relational fields in Odoo and their practical applications.</p><p><strong>What Are Relational Fields?</strong></p><p>Relational fields in Odoo provide a way to link records in one model to records in another model. They create connections or associations between data, allowing you to represent complex relationships in your business application.</p><p>There are several types of relational fields in Odoo, each designed for specific use cases:</p><ol><li><strong>Many2one (M2O):</strong> The Many2one field represents a many-to-one relationship, meaning multiple records from one model can be linked to a single record in another model. This is one of the most commonly used relational fields and is suitable for scenarios where records need to reference a single parent or master record. <strong>Example:</strong> In a Customer Invoicing module, a “Customer” field (Many2one) in an invoice record links each invoice to a specific customer from the “Res Partner” model.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Le6oJbUHKrR6AMQsFwm5g.png" /><figcaption>Many2one Field</figcaption></figure><p><strong>2. One2many (O2M):</strong> The One2many field establishes a one-to-many relationship, where multiple records in one model can be connected to a single record in another model. It is often used to represent multiple child records related to a parent record. <strong>Example:</strong> In a Sales Order module, an “Order Lines” field (One2many) in a sales order record links the order to multiple order line records.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-ayicx8Rj9MbvDqiX-fWg.png" /><figcaption>One2many Field</figcaption></figure><p><strong>3. Many2many (M2M):</strong> The Many2many field creates a many-to-many relationship, enabling multiple records from one model to be linked to multiple records in another model. It is suitable for scenarios where records can be associated with multiple other records. <strong>Example:</strong> In a Project Management module, a “Team Members” field (Many2many) in a project record links the project to multiple team members from the “Res Users” model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0TVTKJiRj1YgbQwUf2MnWw.png" /><figcaption>Many2Many Field</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb6cc9755dea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Define One2many Fields in Odoo]]></title>
            <link>https://medium.com/@ahmedmuhumed/how-to-define-one2many-fields-in-odoo-8b102ef92a0f?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b102ef92a0f</guid>
            <category><![CDATA[class]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[one2many]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 08:14:34 GMT</pubDate>
            <atom:updated>2024-03-19T08:37:08.809Z</atom:updated>
            <content:encoded><![CDATA[<p>In Odoo, a One2many field is a type of relational field that establishes a one-to-many relationship between two models. This means that for each record in the source model, there can be multiple related records in the target model. Let&#39;s explore One2many fields in detail:</p><ol><li><strong>Field Definition</strong>:</li></ol><ul><li>To create a One2many field, you need to specify the following attributes:</li></ul><p><em>— </em><em>comodel_name: The name of the target model with which the relationship is established.</em></p><p><em>— </em><em>inverse_name: The name of the corresponding </em><em>Many2one or </em><em>Reference field in the target model that links back to the source model.</em></p><p><em>— </em><em>string: An optional string that defines the label of the field when displayed in the user interface.</em></p><pre>class SaleOrder(models.Model):<br>    _name = &#39;sale.order&#39;<br>    _description = &#39;Sales Order&#39;<br><br>    order_line = fields.One2many(&#39;sale.order.line&#39;, &#39;order_id&#39;, string=&#39;Order Lines&#39;)</pre><p>In the above code, we created <strong><em>One2many </em></strong>field having</p><ul><li><em>comodel_name</em>: <em>&#39;sale.order.line&#39;</em></li><li><em>inverse_name</em>: <em>&#39;order_id&#39;</em></li><li><em>string</em>: <em>&#39;Order Lines&#39;</em></li></ul><p>2. <strong>Usage</strong>:</p><ul><li>One2many fields are used when you want to link multiple records from the source model to records in the target model. A common use case is in representing line items or details associated with a main record. For example, a sales order can have multiple order lines, and you can use a One2many field to relate them.</li></ul><p>3. <strong>Inverse Relationship</strong>:</p><ul><li>In the target model, you typically define a corresponding Many2one or Reference field that establishes the reverse relationship. This field is set as the inverse_name in the One2many field of the source model. This enables Odoo to link records in both directions, ensuring data consistency.</li></ul><pre>class SaleOrderLine(models.Model):<br>    _name = &#39;sale.order.line&#39;<br>    _description = &#39;Sales Order Line&#39;<br><br>    order_id = fields.Many2one(&#39;sale.order&#39;, string=&#39;Sales Order&#39;)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b102ef92a0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Evolution of SMS from 2G to 5G]]></title>
            <link>https://medium.com/@ahmedmuhumed/the-evolution-of-sms-from-2g-to-5g-aab76803e84f?source=rss-5cdac398e948------2</link>
            <guid isPermaLink="false">https://medium.com/p/aab76803e84f</guid>
            <category><![CDATA[telecommunication]]></category>
            <category><![CDATA[4g]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[lte-4g-technology]]></category>
            <dc:creator><![CDATA[Ahmed Muhumed]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 20:56:31 GMT</pubDate>
            <atom:updated>2023-09-06T20:56:31.310Z</atom:updated>
            <content:encoded><![CDATA[<p>Short Message Service (SMS) — one of the earliest forms of mobile messaging, has evolved and undergone enhancements from 2G to 5G networks. Let’s explore the evolution of SMS across these generations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*ysD3_WVOfqFYxzXanijspw.png" /></figure><p>SMS was first introduced with 2G networks, specifically in the GSM (Global System for Mobile Communications) standard. In 2G, SMS was limited to text-based messages with a maximum length of 160 characters. It utilized the signaling channels of the GSM network for message transmission.</p><p>With the introduction of 3G networks, SMS underwent some improvements. The maximum length of an SMS increased to 160 characters in 7-bit encoding or 140 characters in 8-bit encoding. Additionally, 3G networks introduced support for concatenated SMS, allowing longer messages to be sent by dividing them into multiple segments and reassembling them on the recipient’s device. This enabled users to send longer text messages seamlessly.</p><p>In 2G and 3G systems, MAP (Mobile Application Part) which is an application layer protocol built on top SS7 protocol played a crucial role in enabling SMS-related services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*O-0bUQOhrS7VJl1JQ-81jw.png" /><figcaption>SS7 Protocol Stack (source: Geeksforgeeks)</figcaption></figure><p>Since 4G is IP-based system, there is one question that comes into out minds, what about the SMS between circuit switched ans packer switched networks such as 3G and 4G? So, another technique called SMS over SGs was issued to deal with this. The SGs interface connects the Serving GPRS Support Node (SGSN) and the Mobile Switching Center (MSC). The SGSN is responsible for managing packet-switched data services, while the MSC handles circuit-switched voice and SMS services. SMS over SGs leverages this interface to deliver SMS messages over the packet-switched network.</p><p>Then, one notable change in 4G was the introduction of IP Multimedia Subsystem (IMS) architecture, which enabled the integration of SMS into IP-based networks and allowed for better interworking between SMS and other multimedia services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aab76803e84f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>