<?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 Indrajaya on Medium]]></title>
        <description><![CDATA[Stories by Indrajaya on Medium]]></description>
        <link>https://medium.com/@masjay?source=rss-7ea079d8f70f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HqZOAy2hVDG_8Z8E.</url>
            <title>Stories by Indrajaya on Medium</title>
            <link>https://medium.com/@masjay?source=rss-7ea079d8f70f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:27:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@masjay/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[The Battle of Odoo: The Fastest Odoo Version in 2022]]></title>
            <link>https://medium.com/it-paragon/the-battle-of-odoo-the-fastest-odoo-version-in-2022-d6d3996646b?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d3996646b</guid>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Tue, 26 Apr 2022 13:52:22 GMT</pubDate>
            <atom:updated>2022-04-26T13:52:22.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MQlBfancgBsKvMPT" /><figcaption>Photo by <a href="https://unsplash.com/@chuttersnap?utm_source=medium&amp;utm_medium=referral">CHUTTERSNAP</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the real benefits of using an open source software is that users can access and analyze the code for any reason or aspect. As time goes by, more and more features are added as well as bug fixes. These changes can also affect the speed at which Odoo executes commands. In this article, I lay out whatever I found during testing on which version I should focus more on to benefit from its performance.</p><p>The test will be perform inside the container. Working with container, like docker makes developer lives easier. Just write the configuration and docker will handle the rest.</p><h4>Configuration</h4><p>The docker compose configuration I used is written below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/adacfa8cb7b768fcf9948fd85e2bb8aa/href">https://medium.com/media/adacfa8cb7b768fcf9948fd85e2bb8aa/href</a></iframe><h4>Database</h4><p>To generate database and install addons can be perform using script below. The database name use nomenclature d_&lt;version&gt; and the container name t&lt;version&gt;.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85e5c5831209da89c246bec9049960d8/href">https://medium.com/media/85e5c5831209da89c246bec9049960d8/href</a></iframe><h4>Testing Tool</h4><p>There are many stress test tools available in the market, from free / open source to paid. I use my own script to perform the test instead of using available tools. Many thanks to my colleague <a href="https://medium.com/@hendrapm99">Hendra Priyana Mirantika</a> who wrote the initiation code so I can extend it to meet the requirement. The script using endpoint /web/dataset/call_kw instead of /xmlrpc/2/object. The endpoint /xmlrpc/2/object is used to call methods of odoo models via the execute_kw RPC function. The client that call execute_kw (e.g. xmlrpc client) will raise exception if the remote method return nothing. That’s the strong reason of using /web/dataset/call_kw because it always return an non empty dictionary so it will compatible with client call requirement.</p><p>I put the script <a href="https://github.com/jay009id/odoo-stress-test">here</a>. Everyone can improvement it to meet specific requirement.</p><h4>Scenario</h4><p>I choose the simple scenario then everyone can extend the complex one if needed. Every version will perform the same scenario. The number of products tested is 70 pieces and 100 purchase orders. The testing process is carried out sequentially. The query to database is not part of the testing because lack of time. The scenario can be extend to any module, sale for example.</p><p>Not every version have the same method to perform an operation. For example, Odoo version 13–15 (v.13 — v.15) remove account.invoice model and merge invoice to account.move. So, the validation method action_invoice_open that use in v.11 — v.12 has been changed to action_post in v.13 — v.15.</p><p>This is the testing step :</p><ol><li>Turn off ir.cron to avoid distraction during testing</li><li>Populate master data (product &amp; contact). The product name was taken from <a href="https://www.halfyourplate.ca/fruits-and-veggies/fruits-a-z/">https://www.halfyourplate.ca/fruits-and-veggies/fruits-a-z/</a></li><li>Create purchase order</li><li>Confirm purchase order</li><li>Validate receipt</li><li>Create vendor bill</li><li>Validate vendor bill</li></ol><h4>Result</h4><p>The results exhibit that Odoo v.13 is the fastest in most scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*BBrn2v8Yqqa4EKsZXciqvg.png" /></figure><p>But, it doesn’t mean v.13 is the winner for every scenario for other addons. It must confirm through testing scenario. The challenge is what the cause v.13 run faster than the latest version. According to <a href="https://portcities.net/blog/odoo-tutorials-1/post/how-to-seamlessly-migrate-from-an-old-odoo-version-to-the-latest-one-a-complete-guide-28">https://portcities.net/blog/odoo-tutorials-1/post/how-to-seamlessly-migrate-from-an-old-odoo-version-to-the-latest-one-a-complete-guide-28</a>, v.13 is faster than v.12 for partner creation, modify sale order, create &amp; post invoice. And v.14 is faster than v.13 on website area.</p><p>The interesting fact is validate vendor bill in v.14 and v.15 takes no time to validate. Looking the vanilla code can give a clue.</p><h4>Things to be Improved</h4><ul><li>Log SQL in every test to sharp analysis</li><li>Testing other module</li><li>Record cpu, memory and io usage</li><li>Inject a profiler to find out the part that took the most consume time in one test cycle</li></ul><h4>Conclusion</h4><p>The test in this article is just a rough clue if you care about performance instead of feature improvement. Logging SQL and record the hardware usage can confirm and gives an insight to boost the performance. Over the time, Odoo always improve the feature. Sometimes it cannot install in the previous version. For example, v.14 focus on user interface improvement and v.15 comes with profiler by default.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d3996646b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/it-paragon/the-battle-of-odoo-the-fastest-odoo-version-in-2022-d6d3996646b">The Battle of Odoo: The Fastest Odoo Version in 2022</a> was originally published in <a href="https://medium.com/it-paragon">IT Paragon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo Tricks: Speed Up Default Tree View]]></title>
            <link>https://masjay.medium.com/odoo-tricks-speed-up-default-tree-view-e6043cc5f83?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6043cc5f83</guid>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[high-performance]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Wed, 29 Dec 2021 11:03:33 GMT</pubDate>
            <atom:updated>2021-12-29T11:14:35.357Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yTQQrkzzRGfZDE9A" /><figcaption>Photo by <a href="https://unsplash.com/@o5ky?utm_source=medium&amp;utm_medium=referral">Oscar Sutton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Background</h3><p>Normally, Odoo takes care of everything to make it seem easy and simple for both developers and users.</p><p>Over the time, the data getting bigger so it takes so much time to show the table after click the menu. After showing the table, user can filter to show specific data. Unfortunately, the user is already frustrated before being able to perform the filter.</p><p>Adding the index will help when user perform the filter, otherwise nothing changed.</p><p>To make everything simple, this article will focus on how to improve the performance of stock move menu in Odoo 11.</p><h3>Analysis</h3><p>When user click a menu, browser will call exposed service /web/dataset/search_read via json-rpc in the backend. This happen to most of the menu, except dashboard or setting menu. This behavior assume that menu has no domain to filter by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*7UNktkJfLp1WYfvTJTSf3A.png" /></figure><p>This url path (/web/dataset/search_read) is provided in web addons (check addons/web/controllers/main.py). The method for the exposed service then calls do_search_read.</p><p>In method do_search_read perform 2 main operations, search and count the data.</p><p>In the search operation, if the sort parameter is empty or false in the search_read or search method, Odoo will use default _order attribute. Normally, define a new model can be written as follow.</p><pre>from odoo import models<br>class StockMove(models.Model):<br>    _name = &#39;stock.move&#39;<br>    _order = &#39;date&#39;</pre><pre>    def method_for_operation(self):<br>        pass</pre><p>When _order attribute is not define, Odoo will get id as it’s value. When data become very large, _order attribute can introduce an issue because it force Odoo to add order by before the query send to Postgresql. To avoid this, the _order attribute can be set as false.</p><p>The count operation in do_search_read is counting amount of data. In the large data, it also cause a slow operation. Laurenz Albe explain very well about this¹. When user click a menu, they should not care about exact count. The estimation count can be provide from Postgresql query planning that execute it very fast.</p><p>By using this technique, when the user clicks on the menu, the default tree view takes place very quickly.</p><h3>Solution: Develop the patch</h3><p>The first need to do is clone the sample code² :</p><pre>git clone <a href="https://github.com/jay009id/speedup_odoo.git">https://github.com/jay009id/speedup_odoo.git</a></pre><p>Two things need to be concern are patching the service of search_read (controllers/main.py) and sort (models/stock_move.py) process.</p><p>In file controllers/main.py (see below), the estimation count can be provide at line 27–30.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99814261d62f8f23bfee125503a44d99/href">https://medium.com/media/99814261d62f8f23bfee125503a44d99/href</a></iframe><p>To avoid a sort process, the _order attribute can be set as false.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/575481929f6577dc09c08a3067568839/href">https://medium.com/media/575481929f6577dc09c08a3067568839/href</a></iframe><p>Install the module/addons, then user will get a “wow” moment when access a very large data, especially a stock move. This technique can be apply to other menu with a small modification.</p><h3>Conclusion</h3><p>The technique that explain in this article is just one part / idea of manything that need to be investigate when Odoo run very slow in large data. Enjoy the journey.</p><h3>Reference</h3><ol><li><a href="https://www.cybertec-postgresql.com/en/postgresql-count-made-fast/">https://www.cybertec-postgresql.com/en/postgresql-count-made-fast/</a></li><li><a href="https://github.com/jay009id/speedup_odoo">https://github.com/jay009id/speedup_odoo</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6043cc5f83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo 11: Solving chrome browser issues on filter and groupby popups]]></title>
            <link>https://masjay.medium.com/odoo-11-solving-chrome-browser-issues-on-filter-and-groupby-popups-91ab95122acb?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ab95122acb</guid>
            <category><![CDATA[filter-groupby-popup]]></category>
            <category><![CDATA[odoo-12]]></category>
            <category><![CDATA[odoo-11]]></category>
            <category><![CDATA[chrome-browser-issues]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Thu, 30 Sep 2021 15:32:45 GMT</pubDate>
            <atom:updated>2021-10-01T04:31:43.184Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a problem when user selects popup and groupby filter on Odoo 12 using certain version of chrome browser (version 89). This problem not only occurs in Odoo 12, but also Odoo 11.</p><ul><li><a href="https://github.com/odoo/odoo/issues/66848">[12.0] &quot;Group By&quot; dropdown no longer allows mouse selection in Chrome · Issue #66848 · odoo/odoo</a></li><li><a href="https://github.com/odoo/odoo/issues/75818">[11.0] Chrome 89 event delegation · Issue #75818 · odoo/odoo</a></li></ul><p>Chrome with version 92 (92.0.4515.131) is also experiencing the same problem. The problem is that the popup disappears when selecting a filter or group based on criteria like in the following video.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NzKTLmNTNmgwAY2XWuK61Q.gif" /><figcaption>Source: <a href="https://github.com/odoo/odoo/issues/66848#issuecomment-818031802">https://github.com/odoo/odoo/issues/66848#issuecomment-818031802</a></figcaption></figure><p>The fix as suggested on <a href="https://github.com/odoo/odoo/issues/66848#issuecomment-810126928">this link</a> unfortunately only applies to Odoo version 12, but doesn’t apply to Odoo version 11. This is due to a fairly large difference from the JavaScript code that specifically handles filter &amp; groupby popups.</p><p>Fortunately, there is a small fix that can be applied to Odoo 11 as described in <a href="https://github.com/odoo/odoo/pull/69274#issuecomment-820324776">this link</a>.</p><p>If you have an access to Settings page, this trick can be used as a quick wins. Just click the Create button in menu Settings | Technical | User Interface | View. You must access as debug mode to make sure the column in right side shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*zzjAHf6llwN7Evhficbl6Q.png" /></figure><p>In the Architecture, put this syntax below. Then Save.</p><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;data name=&quot;fix_jquery_chrome89&quot; inherit_id=&quot;web.assets_common&quot;&gt;<br>  &lt;xpath expr=&quot;.&quot; position=&quot;inside&quot;&gt;<br>    &lt;script&gt;&lt;![CDATA[ (function(b){var c=b.fix;b.fix=function(){var a=c.apply(this,arguments);&quot;click&quot;===a.type&amp;&amp;-1===a.button&amp;&amp;(a.button=0);return a}})(jQuery.event) ]]&gt;<br>    &lt;/script&gt;<br>  &lt;/xpath&gt;<br>&lt;/data&gt;</pre><p>Tadaaa, work like a charm.</p><p>I hope, this can solve the issue. Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ab95122acb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ERP Tech Talk #10: Odoo Celery Basic Implementation]]></title>
            <link>https://medium.com/it-paragon/erp-tech-talk-10-odoo-celery-basic-implementation-7418f783908c?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7418f783908c</guid>
            <category><![CDATA[celery]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[rabbitmq]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 01:51:30 GMT</pubDate>
            <atom:updated>2021-03-07T09:58:37.829Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Odoo is an all-in-one management software that offers a range of business applications for small and mid-size businesses that form a complete suite of enterprise management applications, it offers community and enterprise versions. It designs to be easy both for the developer to extend the capability and practical for users.</blockquote><p>To realize convenience from the developer side, Odoo uses ORM (object-relational mapping) which acts as a bridge between programming language and database. The ORM helps to execute SQL queries without writing them explicitly. The developer just focuses on how to manipulate the object and Odoo will take the rest. However, this feature comes with a price. Accessing data through ORM doesn’t go as fast as using direct SQL. If you want to know what the SQL looks like for a certain ORM operation, please read the article written by my colleague: <a href="https://medium.com/it-paragon/erp-tech-talk-8-high-performance-odoo-d4894bf758c">ERP Tech Talk #8: High-Performance Odoo</a>.</p><p>Back again to ORM. Writing operation through ORM still the common way instead of rewriting it to SQL syntax due to its benefit [³]. When a user posts a request to the server, the user needs to wait until the process is accomplished. This happens because Odoo uses a synchronous process to force everything to run serially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*s-MTcUfdcFfKWlYZ6jroLA.png" /></figure><p>Because the process in Odoo takes place serially, for certain conditions such as processing a lot of data, it will take a long time and this forces the user to wait until the process is complete. Users will be presented with a message to wait without certainty when it’s finished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/0*d7yO-GRd6Eggln__" /></figure><p>To avoid users waiting for the process to finish, this behavior must be re-engineered differently. The trick is to make the processes not run synchronously but forced to run in the background asynchronously. The big benefit is that users can focus and move on to the next job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*lnU7gHSKvVUC_Phg" /></figure><p>The celery comes into account. Celery is one of the common and famous tools in the python world to implement distributed task queues. Celery was chosen because[⁴]:</p><ul><li>Very simple, easy to use, and maintain</li><li>Very fast with a sub-millisecond round trip latency that uses the standard protocol for message queue (AMQP)</li><li>Manageable task (error handling, task prioritization, etc)</li><li>Traceable process</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pugB8u4sPotyFahM" /></figure><p>Basically, when the user sends the request through a reverse proxy. The reverse proxy will reroute to the Odoo instance that is available to work. The Odoo instance will prepare any prerequisite parameters and forward them to the broker. In this case, Celery by default using RabbitMQ as broker messenger and puts it into queue block. The consumer will consume the data in the broker’s queue as soon as possible. Even it took so much time, the user will not be disturbed by the consumer. The number of consumers instance can be more than 1. When the consumer received the data/parameter from the broker agent it will post it to Odoo worker instance. This worker only receives the request from the consumer, not from the user. To inform the user that they are currently queuing, we can create an intermediate state so that the user knows the current state of the document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*Y7FhZoTGyei2t_rWzVgj6Q.png" /></figure><h3>Implementation</h3><p>Time to make our hands dirty. Let’s say we want to invoice validate that contains more than 500 lines. By extending the state field (line 9), the user will know the invoice status after clicking the validate button. Any requested parameters to call call_task are prepare in the method <strong>action_invoice_open_queue.</strong> If there is something went wrong, the state could be a rollback to the previous state (line 33). The consumer in the celery will call <strong>_action_invoice_open_queue</strong> in the Odoo worker.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b07ca251aa01941db1acb6eb15261d1/href">https://medium.com/media/8b07ca251aa01941db1acb6eb15261d1/href</a></iframe><p>Register a new button that calls method action_invoice_open_queue when the user clicks the validate button. This button only visible when the state is draft. Otherwise, it will invisible. Then, the original button that calls method action_invoice_open will force to invisible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/087ddd67f579d4e0cae6c1bdacd93045/href">https://medium.com/media/087ddd67f579d4e0cae6c1bdacd93045/href</a></iframe><h3>Feature</h3><p>Even though the design is quite simple, it is assumed that all goes well. However, there are times when unexpected conditions are encountered. To cover it, just extend <strong>celery.task</strong> model.</p><ul><li>If there is a user error exception, the task will be canceled and the state of the document being processed will be returned to the previous state-defined when creating the task. For example, if the invoice state changes from draft to queue by validation process and it forms an unbalanced entry journal, then the invoice status will be returned to its initial condition. After that, the user can check the cause of the problem if they have had sufficient time (line 132).</li><li>If there is a TransactionRollbackError (concurrent update) exception, the task will be automatically re-requested without being limited by the number of repetitions. Normally, this number of repetitions is limited to avoid wasted processing (line 145).</li><li>Normally, canceling tasks manually will influence to the original document. By customization, the task cancellation process can force the document’s status back to its previous state (line 41).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/317228a82a0300d334aa18a95d26859e/href">https://medium.com/media/317228a82a0300d334aa18a95d26859e/href</a></iframe><h3>Conclusion</h3><p>Implementation of the queuing system becomes very easy with celery. This will also increase the user confidence level. The user does not need to be bothered with an annoying display that does not have direct benefits for it. With this queuing system, the need to upgrade the system exponentially can be avoided and will ultimately save the cost of purchasing new hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuBQwdI-6m6y9XpdmJvg6Q.png" /></figure><h3>Reference</h3><ol><li>IT Paragon’s ERP Tech Talk #10 by Hendra Priyana Mirantika</li><li><a href="https://medium.com/it-paragon/erp-tech-talk-8-high-performance-odoo-d4894bf758c">ERP Tech Talk #8: High-Performance Odoo</a></li><li><a href="https://www.cybrosys.com/blog/orm-in-odoo">https://www.cybrosys.com/blog/orm-in-odoo</a></li><li><a href="https://docs.celeryproject.org/en/stable/getting-started/introduction.html#celery-is">https://docs.celeryproject.org/en/stable/getting-started/introduction.html#celery-is</a></li><li><a href="https://apps.odoo.com/apps/modules/11.0/celery/">https://apps.odoo.com/apps/modules/11.0/celery/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7418f783908c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/it-paragon/erp-tech-talk-10-odoo-celery-basic-implementation-7418f783908c">ERP Tech Talk #10: Odoo Celery Basic Implementation</a> was originally published in <a href="https://medium.com/it-paragon">IT Paragon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ERP Tech Talk #5: Beauty Class]]></title>
            <link>https://medium.com/it-paragon/erp-tech-talk-5-beauty-class-aa845d7f0f17?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa845d7f0f17</guid>
            <category><![CDATA[it-paragon]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[tech-talk]]></category>
            <category><![CDATA[beautyclasses]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Sun, 29 Nov 2020 18:08:14 GMT</pubDate>
            <atom:updated>2020-12-01T13:44:53.961Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Beauty class</strong> is one of the training programs to beautify yourself, such as daily makeup or flawless makeup, which aims to increase the insight of female consumers in using various types of cosmetics. In a company, beauty class can be applied to <strong>increase sales</strong> by collaborating between customer and company that have included the implementation period, the number of products, and the types of products to be sold.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSAsVXaPXkgdk2vTlJ9x0A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@freestocks?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">freestocks</a> on <a href="https://unsplash.com/s/photos/beauty-class?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In this article, I would like to share how PT Paragon Technology and Innovation, as an FMCG Company, runs Beauty Class from a different perspective. Lets start it!</p><p>In the normal process, user (the company) create sale order then confirm it. As a result, delivery order was created. User will validate the delivery order after confirm the product and it’s quantity. Afterward user create the invoice based on delivered quantity. User will perform this typical activity repeatedly. This process will form a pattern: sale order ➟ delivery order (picking) ➟ invoice.</p><h4>Table Relation</h4><p>The relationship between sales orders, delivery orders and invoices can be explained below. Any unrelated fields in this article are not displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*y0KtMGpGUsGx335-AL6_Nw.png" /><figcaption>Relation in a very simple form</figcaption></figure><h4>Sale Order</h4><p>In the common structure, the sale order should have information customer, order date, price list, payment term and the important one is sale order line. Okay, let’s deep into sale order line.</p><p>The relationship between sales orders (table sale_order) and sales order rows (table sale_order_line) is one by many. Tables sale_order_line record product, unit price, discount (if any), order quantity, delivery and invoice. When the user creates a sales order, all fields are filled, except qty_delivered and qty_invoiced which are still zero.</p><h4>Delivery Order</h4><p>When user confirm the sale, Odoo will create a record in stock_picking and stock_move. The sale_id in stock_picking will refer to sale_order.id and field sale_line_id in stock_move will link to sale_order_line.id. The relation between sale_order and stock_picking is one to many, as well as table sale_order_line and stock_move.</p><p>When user validate the delivery order, Odoo will call method _action_done for every line of the picking and update field qty_delivered in sale_order_line (see at addons/sale_stock/models/stock.py).</p><pre>def _action_done(self):<br>    result = super(StockMove, self)._action_done()<br>    for line in result.mapped(&#39;sale_line_id&#39;).sudo():<br>        line.qty_delivered = line._get_delivered_qty()<br>    return result</pre><h4>Invoice</h4><p>If the invoice policy is “Invoice what is delivered” at menu Sales | Configuration | Settings &gt; Invoicing Policy, Odoo will create invoice based on delivered product through iterate the sale order line. During this iterate process, Odoo will make a link between sale order line and invoice line in method invoice_line_create of the model sale.order.line (see at addons/sale/models/sale.py). As a result, new record of table sale_order_line_invoice_rel created.</p><pre><a href="http://twitter.com/api">@api</a>.multi<br>def invoice_line_create(self, invoice_id, qty):<br>    invoice_lines = self.env[&#39;account.invoice.line&#39;]<br>    precision = self.env[&#39;decimal.precision&#39;].precision_get(&#39;Product Unit of Measure&#39;)<br>    for line in self:<br>        if not float_is_zero(qty, precision_digits=precision):<br>            vals = line._prepare_invoice_line(qty=qty)<br>            vals.update({&#39;invoice_id&#39;: invoice_id, &#39;sale_line_ids&#39;: [(6, 0, [line.id])]})<br>            invoice_lines |= self.env[&#39;account.invoice.line&#39;].create(vals)<br>    return invoice_lines</pre><h4>Merge Invoice</h4><p>Basically, Odoo has ability to create 1 invoice from several sales order. The picture below is just example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*LFePZENRBxonW4RMgywgnw.png" /></figure><p>All sales orders link to the same invoice. If a product is in multiple sales orders, it will be distributed across multiple lines as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*hCJLjgEgECN2Z1FBy4eGTg.png" /></figure><h4>Challenge</h4><p>If the customer wants no duplicate products on the invoice, how can this request be fulfilled? Well, it’s not a difficult matter. What needs to be done is as follows:</p><ol><li>Inherit method action_invoice_create from model sale.advance.payment.inv (see addons/sale/wizard/sale_make_invoice_advance.py).</li><li>Iterate invoice line and group it by same product. Add up all the quantity grouping by product.</li><li>Remove link between model sale.order.line and account.invoice.line by assign [(5, False, False)] to field sale_line_ids in the account.invoice.line.</li><li>Remove the duplicate product line.</li><li>Update product quantity.</li></ol><p>In point 3, if the link still exists, any change in quantity will update the qty_invoiced field in the sale.order.line model. For example, let’s see product “[CARD] Graphics Card” in SO020. The quantity is 20. Changing quantity from 20 to 45 in the invoice will propagate qty_invoiced in SO020 as well (see addons/sale/models/sale.py at method _get_invoice_qty).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*wQlNahRoMSkiJTcgQyB9Ag.png" /><figcaption>Origin state</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*XXPJvmMlUji7jx9EDqhluA.png" /><figcaption>Updated state</figcaption></figure><h4>Conclusion</h4><p>Odoo has great features. Thanks to the automatic relationship between models. Developers only update a field without updating the many objects associated with it. Odoo will scatter and take the rest.</p><h4>Reference</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuBQwdI-6m6y9XpdmJvg6Q.png" /></figure><ol><li>IT Paragon’s ERP Tech Talk #5 by Rika Nuriwati</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa845d7f0f17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/it-paragon/erp-tech-talk-5-beauty-class-aa845d7f0f17">ERP Tech Talk #5: Beauty Class</a> was originally published in <a href="https://medium.com/it-paragon">IT Paragon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teruslah Berjuang]]></title>
            <link>https://masjay.medium.com/teruslah-berjuang-4054e918261a?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4054e918261a</guid>
            <category><![CDATA[berjuang]]></category>
            <category><![CDATA[paragonian]]></category>
            <category><![CDATA[humble]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Mon, 05 Oct 2020 02:21:04 GMT</pubDate>
            <atom:updated>2020-10-05T02:21:04.512Z</atom:updated>
            <content:encoded><![CDATA[<p>Lebih dari 30 tahun Paragon berdiri. Diawali oleh oleh industri rumahan, kemudian berkembang pesat pada 5 tahun terakhir dengan pertumbuhan jumlah omset maupun individu di dalamnya. Dengan kondisi yang tumbuh seperti ini, Paragon senantiasa <em>humble</em>, bukan saja sebagai perusahaan namun juga entitas di dalam nya, dalam hal ini adalah para karyawan di Paragon. Untuk singkatnya, kita menyebut sebagai paragonian untuk semua karyawan Paragon.</p><p>Tidak semua paragonian ini berasal dari Jakarta. Bagi yang berdomisili di luar kota Jakarta, maka perusahaan menyediakan mess di sekitar kantor. Nah, mulai dari mess inilah semua cerita ini dimulai.</p><p>Sebagai salah satu paragonian yang pernah tinggal di mess, kebersamaan itu merupakan hal yang penting sekali. Ngobrol dan makan bareng itu jadi sesuatu yang amat bermakna. Mungkin ini biasa saja bagi sebagian orang, tapi amat bermakna untuk saya pribadi. Untuk lebih mengakrabkan satu sama lainnya, kita suka makan bareng. Makan bareng ini bukan sekedar makan bareng, tapi ada nilai-nilai kebersamaan dan kehangatan sesama paragonian.</p><p>Nah, makan bareng ini jadi ajang untuk saling diskusi terbuka untuk topik apapun, termasuk urusan kantor. Jadi, urusan kantor kadang masih terbawa tapi di kondisi yang tidak formal. Nah, pembicaraan ini menjadi lebih menarik ketika topik yang dibicarakan tersebut makin mengerucut. Paragonian dari tim sales itu mengusulkan sebuah ide untuk bisa dikerjakan oleh tim IT. Idenya cukup menarik nih. Tiap ketemu pasti bicara tentang itu, gak ada pembicaraan lain. Topiknya lagi hangat sekali.</p><p>Tidak berselang lama, dibuatlah sebuah prototipe dari ide itu. Belum sempurna, tapi masih bisa bekerja meskipun masih belum layak untuk digunakan di lingkungan produksi. Berbagai masukan pun datang agar prototipe dari ide ini semakin lebih lengkap dan mendekati ke kondisi layak guna.</p><p>Karena kesibukan dari masing-masing paragonian, ide ini sempat berhenti. Selain itu, para inisiator ide belum bisa menyakinkan direksi kenapa ide ini sangat layak untuk dijalankan.</p><p>Waktu berjalan dengan cepatnya. Namun, tetap saja, ide yang bagus itu tidak pantas untuk dibiarkan dan tidak diperjuangkan. Waktu yang ada bisa digunakan untuk menambah berbagai informasi pendukung kenapa ide ini harus tetap hidup. Ide ini senantiasa diperbaiki baik dari segi konsep hingga bagaimana implementasinya kelak meskipun sempat ada masanya ide ini mati suri.</p><p>Segala sesuatu di dunia itu selalu ada ajalnya, alias umur. Ide yang sempat mati suri itu kemudian dihidupkan kembali dengan konsep dan format yang berbeda. Dengan kata lain, umur untuk mati suri nya sudah berakhir. Paragonian menolak untuk menyerah. Format tim juga sedikit berubah, lebih kokoh dan makin kompak. Disamping itu, diperlukan cara-cara baru yang lebih kreatif untuk melalui rintangan yang ada. Kode juga dibuat kembali dari awal.</p><p>Alhamdulillah, apa yang dicita-citakan tercapai. Ide itu diluncurkan dengan nama yang sedikit berbeda. Apakah langsung berhasil ke titik final? Tidak. Sebagai bayi yang baru lahir, ide ini mengalami berbagai perbaikan. Dicoba dulu dengan lingkup yang kecil, lalu semakin meluas.</p><p>Pada kondisi pandemi seperti saat ini, justru ide ini menunjukkan peran yang sangat besar. Memang tidak mudah untuk mempertahankan sebuah ide dan terus memeliharanya. Seiring dengan berjalannya waktu, manajemen yang semakin solid, lingkungan yang semakin kondusif maka tidak heran ide ini semakin berkembang.</p><p>Pelajaran yang bisa dipetik adalah kita harus senantiasa mempertahankan dan menghidupkan ide yang kita miliki. Mungkin saat ini kita belum menemukan alasan yang tepat atau bahkan belum bisa menyakinkan pihak lain atas ide tersebut. Tapi berjuang untuk ide tersebut adalah sebuah keharusan. Pilihannya adalah, kita atau kompetitor yang akan menikmati buah dari ide tersebut.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4054e918261a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tabah]]></title>
            <link>https://masjay.medium.com/tabah-519956d288f?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/519956d288f</guid>
            <category><![CDATA[open-source-software]]></category>
            <category><![CDATA[tabah]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Thu, 01 Oct 2020 11:47:24 GMT</pubDate>
            <atom:updated>2020-10-01T11:47:24.302Z</atom:updated>
            <content:encoded><![CDATA[<p>Pertama kali bergabung dengan perusahaan ini, saya dihadapi oleh kondisi sedikitnya tim. Satu orang bisa menangani beberapa hal sehingga bisa dianggap tidak ada spesialis. Sementara itu perusahaan sedang mulai tumbuh pesat. Diwaktu yang sama, proses regenerasi tengah giat-giatnya dilakukan. Aplikasi yang ada hanya dapat dipahami oleh satu atau dua orang saja. Bagaimana jika terjadi sesuatu dengan kedua orang tadi? Harus segera ada salinan dari dua orang ini.</p><p>Perjalanan selanjutnya adalah mengganti aplikasi yang sudah lama dengan aplikasi yang lebih bisa dipahami oleh generasi yang lebih baru. Mereka-mereka yang baru lulus dengan otak yang segar tentu siap untuk menerima pengetahuan baru. Sehingga, jika menulis di berbagai media untuk lowongan kerja, bisa menulis judul yang hebat-hebat. Jika masih mempertahankan aplikasi yang lama, para <em>freshgraduate</em> akan mengernyitkan kening sambil bertanya-tanya: aplikasi apa itu? Kok baru dengar? Emang pernah ada ya aplikasi itu? Dan sejumlah pertanyaan lain yang tidak akan bisa dibayangkan lagi. Yang terjaring dalam lowongan pekerjaan juga akan sangat sedikit jika tidak mau dibilang tidak akan ada yang tertarik mengisi lowongan itu. Selain itu, mempertahankan aplikasi yang lama itu benar-benar menyakitkan. Potensi kesalahannya besar serta tidak didukung oleh teknologi terbaru yang bisa meminimalkan kesalahan dan kerusakan. Keputusan untuk mengganti aplikasi merupakan keputusan yang cerdas, cerdik dan waktunya sudah cocok.</p><p>Aplikasi seperti apa yang cocok dengan budaya perusahaan yang lincah dan belajar terus-menerus? Setelah mempertimbangkan banyak hal, akhirnya aplikasi / kode yang berbasis <em>open source-</em>lah yang dipilih. Namun, bukankah aplikasi berbayar itu lebih nyaman? Tinggal bayar, selesai. Oh, tidak semudah itu Ferguso.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*lly2qKCrP8H4NC4byMP9bA.jpeg" /><figcaption>Sumber: <a href="https://medium.com/pujanggateknologi/sinkronisasi-data-pada-offline-first-web-app-d34e5b124283">https://medium.com/pujanggateknologi/sinkronisasi-data-pada-offline-first-web-app-d34e5b124283</a></figcaption></figure><p>Berikut ini beberapa hal yang kode berbasis <em>open source</em> merupakan pilihan yang tepat :</p><ol><li>Hemat devisa (<em>no question asked</em>)</li><li>Investasi human capital sudah menjadi darah dan nadi sehari-hari dari perusahaan yang tercantum dalam salah satu misi perusahaan, yaitu mengembangkan paragonian.</li><li>Dengan terbuka nya kode, maka sangat dimungkinkan untuk melakukan perbaikan hingga pada level yang lebih dalam untuk menyesuaikan kebutuhan perubahaan. Bandingkan jika kode nya tertutup sehingga tidak memungkinkan adanya perbaikan bahkan teknologi di belakang nya juga tidak diketahui.</li><li>Keamanan perusahaan / negara lebih terjamin karena kode bisa diaudit oleh siapapun, termasuk jika ditemukan adanya celah keamanan yang bisa segera diperbaiki.</li><li>Legal untuk dilakukan perbaikan maupun distribusi, bergantung pada jenis lisensi yang digunakan. Untuk lebih jelasnya bisa dibaca <a href="https://medium.com/@rifqihz/mengenal-10-jenis-lisensi-open-source-populer-8645024a1492">disini</a> salah satunya.</li><li>Relatif mudah digunakan. Linux, OpenOffice, Postgresql, Firefox, Zimbra dan Blender adalah contoh-contoh aplikasi / sistem operasi yang berbasis <em>open source</em> yang sangat mudah digunakan. <a href="https://www.youtube.com/watch?v=YE7VzlLtp-4">Big bug bunny</a> adalah salah satu hasil karya cukup fenomenal yang memanfaatkan sejumlah aplikasi / program berbasis <em>open source</em>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*Q1T1W5T0J6XkZqSB4oVAeQ.jpeg" /><figcaption>Big Bug Bunny dibuat dengan perangkat lunak Blender yang berbasis open source. Sumber: <a href="https://theawesomer.com/film-big-buck-bunny/1829/">https://theawesomer.com/film-big-buck-bunny/1829/</a></figcaption></figure><p>Dengan menerapkan aplikasi yang berbasis <em>open source</em> ini semua implementasi ini berjalan lancar? Jawaban tegasnya adalah tidak, bahkan berdarah-darah. Lalu kenapa tidak kembali untuk menggunakan aplikasi yang berbayar dan tertutup (baca: <em>close source</em>) dengan dukungan vendor yang sudah terkenal? Kembali lagi, namanya belajar kemungkinan besarnya adalah berdarah-darah dan penuh dengan air mata. Ada yang sampai <em>resign</em> karena harus pulang larut malam terus, ada yang sakit bergantian dalam satu tim, ada yang sampai harus bawa anaknya ke kantor, macam-macam. Apakah dengan menggandeng vendor dan menggunakan aplikasi yang tertutup dijamin tidak akan ada masalah? Tidak juga, bisa berdarah-darah, air mata bahkan menimbulkan kerugian yang tidak sedikit seperti :</p><ul><li><a href="https://www.pemeco.com/a-case-study-on-hersheys-erp-implementation-failure-the-importance-of-testing-and-scheduling/">Overview — Hershey’s ERP Implementation Failure</a></li><li><a href="https://medium.com/@bryan.fargreatco/erp-implementations-failure-cases-valuable-lessons-59f600fd4799">ERP Implementation’s failure cases (Valuable Lessons)</a></li><li><a href="https://www.cio.com/article/2429865/enterprise-resource-planning-10-famous-erp-disasters-dustups-and-disappointments.html">16 famous ERP disasters, dustups and disappointments</a></li><li><a href="http://www.monsoonacademy.com/article/3199/Contoh-Kegagalan-Dalam-Proyek-SAP-ERP-and-Pelajaran-yang-Dapat-Dipetik.html">Contoh Kegagalan Dalam Proyek SAP ERP &amp; Pelajaran yang Dapat Dipetik</a></li></ul><p>Jika sudah mengetahui bahwa baik menggunakan aplikasi berbasis <em>open source</em> maupun <em>close source</em> sama-sama berpotensi bermasalah dan gagal, mengapa masih diteruskan menggunakan yang berbasis <em>open source</em>? Jawabannya adalah seberapa besar niat untuk bertahan dan tabah untuk melalui semua permasalahan yang dihadapi sambil memperbaiki semua kekurangan yang ada menuju apa yang dicita-citakan. Ketabahan merupakan salah satu kunci penting dari semua keberhasilan disamping dengan kuatnya doa serta dukungan semua pihak.</p><p>Mengenai ketabahan, kita bisa belajar dari dua negara yang hingga saat ini masih diembargo oleh Amerika Serikat, yaitu Kuba dan Iran. Dalam kondisi terembargo, Kuba bekerja sama dengan dengan Malaysia mengembangkan vaksin halal meningitis seperti yang diberitakan <a href="http://lipi.go.id/berita/indonesia-harus-produksi-vaksin/3261">disini</a>, <a href="https://www.asiaresearchnews.com/html/article.php/aid/4946/cid/2/research/medicine/universiti_sains_malaysia/usm_and_finlay_lead_the_way_in_halal_vaccine_development.html">disini</a>, <a href="https://www.thetimes.co.uk/article/pilgrims-to-get-halal-vaccine-bw9v5xjsn3z">disini</a>. Kuba dalam keadaan terembargo dapat melakukan layanan kesehatan yang sangat baik bahkan sanggup memberikan beasiswa bagi mahasiswa asing, termasuk mahasiswa dari negara maju sekalipun. Dalam menghadapi kondisi krisis seperti saat ini, Kuba sanggup mengirim tenaga medis keluar negeri jauh lebih banyak dibandingkan Amerika Serikat jika terjadi bencana / wabah. Selain Kuba, negara lain yang terkena embargo adalah negeri para mullah, yaitu Iran. Berbagai tekanan maupun ancaman hingga fitnah datang bertubi-tubi ke negeri tersebut. Namun semua itu tidak menghalangi Iran untuk terus maju dan mengembangkan ilmu pengetahuan. Di tengah kondisi yang tidak menguntungkan baik politik maupun ekonomi, teknologi rudal balistik menjadi momok yang menakutkan bagi negara-negara yang tidak senang dengan berbagai kemajuan yang dicapai oleh Iran. Banyaknya ilmuwan yang terbunuh hingga akses keuangan yang semakin dibatasi serta embargo yang tidak adil tidak membuat Iran menjadi hancur berkeping-keping, namun semakin kuat dan kokoh.</p><p>Kuba dan Iran telah menunjukkan dunia bahwa mereka mampu untuk terus bergerak maju meskipun halangan maupun ancaman datang silih berganti. Apa yang mereka miliki adalah ketabahan dalam menjalani semua proses yang ada.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=519956d288f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tidur: Dari WFO ke WFH]]></title>
            <link>https://masjay.medium.com/tidur-dari-wfo-ke-wfh-2e8d13249911?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e8d13249911</guid>
            <category><![CDATA[wfh]]></category>
            <category><![CDATA[tidur-siang]]></category>
            <category><![CDATA[wfo]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Thu, 24 Sep 2020 15:23:09 GMT</pubDate>
            <atom:updated>2020-09-24T15:23:09.499Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Sudah lebih dari 5 bulan saya bekerja dari rumah, istilah kerennya sih WFH. 5 bulan ini benar-benar tidak terasa. Awalnya menyangka WFH itu hanya 1 bulan saja. Untuk tulisan saya kali ini, saya berusaha untuk tidak menyinggung siapapun ya, plus tidak salah ketik. Kalaupun salah ketik ataupun yang membaca jadi punya perasaan yang berbeda dan janggal, mohon maaf saja ya. Skripsi yang pernah saya tulis, ketika saya baca kembali malah bikin saya bingung, maksudnya apa tulisan ini???</blockquote><h3>Ketika masih WFO</h3><p>Dimulai dari bangun tidur beberapa menit sebelum adzan subuh, sholat, sarapan pagi, mandi dan terburu-buru menuju titik dimana mobil omprengan ngetem. Yes, pagi-pagi udah olah raga kaki sampe jantung (alias takut ketinggalan). Syukur-syukur udah ada di tempat sebelum jam 6 pagi. Kalau ternyata si omprengan itu dateng telat, dalam rentang jarak 100 meter dia akan membunyikan klakson dan kita-kita udah siap-siap rebutan masuk ke mobil. Mobil berhenti sejenak, rebutan cari posisi nyaman, hitung depan sampe belakang. Apa sudah pas 11 orang? Sudah pas 11 orang, langsung berangkat. Bener-bener mirip mobil balap Formula 1. Dateng, ganti sana-ganti sini, berangkat.</p><p>Tadi saya nyebut mencari posisi nyaman kan? Betul. Karena selama perjalanan menuju kebon jeruk, hampir semua penumpang (terutama saya) akan kembali melanjutkan kenikmatan yang tadi sempat tertunda, yaitu tidur selama hampir 40 menit.</p><p>Pertanyaannya, kenapa sampai harus dibela-belain pake omprengan? Bukannya ada kendaraan umum lainnya? Nah, itu saya punya cerita tersendiri terkait hal tersebut.</p><p>Pertama, ngetem nya lama. Pernah naik bis kota dan ngetem sebelum masuk ke tol. Seperti biasa, tidur dong di bis. Udah puas tidur, sempat kebangun. Ya ampun, belum bergerak juga ini bis. Sejak saat itu gak mau pake bis itu kalau gak benar-benar terpaksa. Bahkan, sebelum masuk tol saja jalannya juga lambat. Dia baru ngebut di jalan tol.</p><p>Kedua, tidur di bis sampe kebablasan hingga RS Jantung Harapan Kita. Nah, ini jenis bis yang kedua ini larinya cepat dan gak pake ngetem. Pokoknya wus..wus..wus.. Bis jenis kedua terjadwal perjalanannya, berangkat maupun kembali. Jadi kalau ketinggalan di kloter pertama, masih bisa nunggu di kloter berikutnya dengan rentang waktu yang tidak lama. Nah, seperti biasa, setelah masuk ke dalam bis, dengan suasanya yang sangat nyaman itu cukup untuk membuat saya menjalankan kegiatan di dalam kendaraan, yaitu tidur. Nah, bis jenis kedua ini sayangnya tidak mampir (baca: berhenti) di kebon jeruk, jadi tidak ada pengingat atau apapun yang bikin saya tersadar untuk segera turun. Kalau sudah kebablasan seperti ini, naik ojeknya jadi lebih jauh. Dan, kejadian seperti ini sudah lebih dari 2x (gak mau bilang udah 3x). Kesel kan?</p><p>Ketiga, bawa kendaraan sendiri. Nah, ini relatif aman dan ideal. Tapi ingat, tol Merak-Jakarta itu selalu macet kalau pagi hari. Lumayan tuh mencet rem &amp; gas gonta ganti. Atau lewat jalur normal yang bakal bersaing dengan berbagai kendaraan, baik motor maupun mobil. Selain itu, saya harus melek sepanjang perjalanan. Tidak ada istilah tidur selama perjalanan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*4ruPXh4E2eI-c0vhzM5RYg.jpeg" /><figcaption>Wajib menahan kantuk di perjalanan. Sumber : <a href="https://www.hipwee.com/hiburan/9-cara-konyol-menahan-kantuk-berat-yang-pernah-dilakukan-orang-tapi-ini-bukan-anjuran-lho-ya/">http://www.hipwee.com</a></figcaption></figure><p>Sampai di kantor, lihat jam. Wow, masih ada waktu untuk menjulurkan tulang punggung. Lanjut ke mushola dan rebahan sejenak. Alarm kembali berbunyi pukul 7:25 pagi. Saatnya on fire hingga pukul 17:00. Loh, jam istirahatnya gimana? Okeh, di paragraf-paragraf selanjutnya baru akan disinggung. Hanya disinggung, bukan diceritakan panjang lebar.</p><p>Pukul 17:00 alarm kembali menyapa. Kembali mengejar omprengan atau bis kota seperti lagunya Achmad Albar (<a href="https://www.youtube.com/watch?v=fTUWfqOPyxA">link</a>). Pesan ojek, syukur-syukur tiba di kebon jeruk pukul 17:15. Seperti biasa, 20–30 meter dari titik pertemuan sang Formula 1 (baca: omprengan) yang dinahkodai oleh Pak Ahmad sudah memberi tanda. Berhenti sejenak, mobil bergoyang dulu sebenar akibat tidak seimbangnya tekanan dari sisi kiri, kanan dan belakang untuk waktu yang tidak bersamaan. Agar tidak terjadi pelanggaran dari SLA omprengan yang berhenti maksimal 1 menit, Pak Ahmad sudah kembali menekan pedal gas. Apa yang terjadi di dalam omprengan? Anda pasti sudah tahu.</p><p>Nah, itu kalau beruntung berjodoh naik omprengan. Bagaimana jika 2 meter sebelum tiba di titik pertemuan, sang omprengan sudah melaju alias ketinggalan? Nah, bisa alternatif lain ke bis kota. Untuk bis kota, maka berlaku hukum posisi menentukan tingkat kesadaran. Makin jauh dari posisi supir, maka teriakan kernet bis makin kecil terdengar atau bahkan tidak terdengar. Nah, untuk kasus tidak terdengar ini juga menimbulkan trauma tersendiri. Pernah tuh, beberapa kilometer dari lokasi saya harus turun dari bis kota, serangan sore mulai menyerang. Rasa kantuk datang tidak tertahankan. Alhasil, kebablasan. Bukan hanya 1x, tapi 3x berturut-turut (Senin, Selasa dan Rabu). Yang paling parah adalah kebablasan sampai menuju kota Serang. Terpaksa memberanikan diri untuk minta turun di jalan tol. Nyebrang lewat bawah tol untuk kembali menuju arah berlawanan. Jika naik omprengan, kejadian bablas seperti ini tidak akan terjadi karena baik berangkat maupun pulang sudah pasti dibangunkan oleh supir ketika sudah sampai di lokasi tujuan.</p><h3>Ketika sudah WFH</h3><p>Rutinitas dengan kendaraan umum sudah menjadi makanan sehari-hari bagi pekerja seperti saya. Namun, rutinitas ini menjadi berhenti untuk sebagian orang akibat adanya serangan mendadak covid-19. Untuk pekerjaan yang bisa dilakukan secara <em>remote</em>, maka orang bisabekerja dari rumah, alias WFH. Secara jadwal tidak mengalami perubahan. Namun, waktu yang terbuang selama di perjalanan menjadi sebuah penghematan. Selain itu, ada sejumlah keuntungan yang bisa diperoleh jika kita melakukan pekerjaan dari rumah :</p><ul><li>Keseimbangan antara pekerjaan dan kehidupan sehari-hari yang lebih berimbang terutama untuk wanita yang memiliki anak kecil yang membutuhkan perhatian yang lebih.</li><li>Mengurangi stress perjalanan.</li><li>Akses yang lebih luas dan banyak kesempatan kerja yang tidak dibatasi oleh lokasi geografis.</li><li>Menghemat pengeluaran baik dari sisi perusahaan maupun pekerja.</li><li>Berdampak positif bagi lingkungan berupa pengurangan emisi efek rumah kaca / polusi kendaraan bermotor.</li><li>Meningkatkan produktivitas dan kinerja dengan sedikitnya gangguan maupun politik kantor.</li><li>Kehidupan yang lebih sehat dan bahagia karena lebih banyak waktu yang dapat digunakan untuk hobi serta konsumsi makanan atau minuman yang lebih sehat / higienis.</li></ul><p>Dengan WFH ini, istirahat di siang hari menjadi lebih berkualitas. Setelah sholat dan makan siang, bisa dilanjutkan dengan tidur siang baik itu di lantai maupun tempat tidur selama kurang lebih 20–30 menit. Tidak ada ceritanya ketika baru rebahan beberapa menit setelah sholat zuhur sudah dibangunkan oleh pengurus masjid. Ternyata masjid nya mau digunakan acara Yasinan di siang hari oleh ibu-ibu sekitar masjid. Nah, tidur siang di rumah akan terlaksana tanpa gangguan seperti ini. (<em>Masih ingat kan paragraf sebelumnya mengenai kegiatan di waktu istirahat siang</em>)</p><p>Ternyata istirahat berupa tidur siang ini memiliki sejumlah manfaat seperti yang tertulis di <a href="https://www.99.co/blog/indonesia/manfaat-tidur-siang/">sini</a>, <a href="https://pubmed.ncbi.nlm.nih.gov/10380949/">sini</a>, <a href="https://www.sleepfoundation.org/articles/napping">sini</a>, <a href="https://theconversation.com/guilty-about-that-afternoon-nap-dont-be-its-good-for-you-89023">sini</a>, <a href="https://goabroadchina.com/why-chinese-people-always-take-a-noon-time-nap/">sini</a>, <a href="https://www.globaltimes.cn/content/1064862.shtml">sini</a> yang jika dirangkum menjadi kurang lebih seperti ini :</p><ul><li>Membuat lebih fokus dan segar</li><li>Meningkatkan produktivitas</li><li>Menurunkan stres</li><li>Meningkatkan fungsi kognitif</li><li>Memperbaiki suasana hati</li><li>Meningkatkan kewaspadaan</li><li>Mengatasi insomnia</li><li>Mencegah penyakit kardiovaskular</li><li>Meningkatkan kesehatan tubuh</li></ul><p>Energi yang kembali pulih lewat aktivitas tidur siang ini bisa membantu beraktivitas lebih panjang. Setelah jam kerja, itu bisa dilanjutkan lagi dengan kegiatan lain yang tidak kalah manfaat nya, yaitu belajar. Apalagi belajar dengan kondisi energi yang cukup. Untuk kondisi seperti ini, waktu benar-benar tidak terasa. Begitu melihat jam, sudah tengah malam. Meskipun masih seger, tetap wajib dipaksa tidur agar esok hari bisa disambut dengan cerah.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e8d13249911" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Pair Programming: Still Productive at This Pandemic Situation]]></title>
            <link>https://medium.com/it-paragon/remote-pair-programming-still-productive-at-this-pandemic-period-d28c44395ca6?source=rss-7ea079d8f70f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28c44395ca6</guid>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[extreme-programming]]></category>
            <category><![CDATA[productive]]></category>
            <category><![CDATA[remote-pair-programming]]></category>
            <dc:creator><![CDATA[Indrajaya]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 14:26:08 GMT</pubDate>
            <atom:updated>2020-08-09T08:32:36.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ulJM2qwK9EnB3EsZ" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=medium&amp;utm_medium=referral">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Today, I have been working from home for more than 4 months. Everything was done remotely. Honestly, working from home have several benefit instead of working from office. I can start working earlier, take a 30 minutes nap, no stress during trip to and from office, better work-life balance, money saving for both side (employee and employer), positive environment impact that can reduce greenhouse gas emission, healthier work life.</p><p>As I said before, remote working will shift how you work and coordinate between the teammate, including pair programming.</p><h3>A brief introduction to pair programming</h3><p>According to this <a href="https://medium.com/better-programming/when-pair-programming-works-it-works-really-well-heres-why-c51857bbcf0f">site⁴</a> :</p><blockquote>Pair programming is where two developers work together on the same programming/coding task while sitting next to each other, and most importantly of all, they work on one computer only. It is a widely used methodology in software development; according to <a href="https://insights.stackoverflow.com/survey/2018">Stack Overflow Insights 2018</a>, pair programming is used by 28.4 percent of all respondents. Typically the pairing setup will include two sets of keyboards, two mice and either one screen or two screens which are mirrored.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l_8LkE-fALCH0fcz" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To understand the concept of pair programming, just imagine playing “seesaw” in the playground by minimum 2 people. One person at one site push the ground with his/her feet that will go up and the other side will go down. At pair programming, there will be a turn for who will take over the keyboard and write code. It’s not like two people writing code at the same time.</p><h3>Benefit of pair programming</h3><p>The proverb says, two heads are better than one. So, in what scenarios when pairing went absolutely amazingly?</p><ol><li><strong>Novice-expert</strong> pairing when one person is more experienced and willing to teach. The obvious benefit is that there is the <em>sharing of context and distribution of knowledge</em> within the team. It will increase the confidence level and developer satisfaction. The code quality is increased and produce less defects.</li><li><strong>Expert-expert</strong> pairing when two people are at equal levels. When a solution from one person need to be challenged then the result is the fusion of the best ideas from both side.</li></ol><h3>Jump to the floor</h3><p>Today, its not possible to work closely due to social distancing rule. Fortunately, we can use editor that capable to perform pair programming remotely. Meaning, code quality can still maintained by applying pair programming principles.</p><h3>Setup the editor</h3><p>At this article, I will show you how to perform pair programming remotely using Visual Studio Code, a.k.a <strong>VS Code</strong>. I will not compare it to other editor.</p><p>If you haven’t VS Code, just get it from <a href="https://code.visualstudio.com/Download">https://code.visualstudio.com/Download</a>. It can run on macOS, Linux and Windows.</p><p>After VS Code installed, you need to install the Live Share and Live Share Audio extension by combination <strong>Ctrl+Shift+P</strong> or visit menu <strong>View | Command Palette…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*2IAZw3Yg_cPy3BRn0DAP_g.png" /><figcaption>Install Live Share and Live Share Audio extension</figcaption></figure><h3>Doing collaboration</h3><h4>1. Start live share</h4><p>Open your working directory, click <strong>Live Share | Start collaboration sessions…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPRd97-6XPTqOGiOR9eVPA.png" /><figcaption>Start collaboration session</figcaption></figure><p>Then you must to sign either Microsoft or Github (I choose Github).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*U3puT_pNMPWQdUW3d5TjYQ.png" /><figcaption>Authorize the authentication request</figcaption></figure><p>Just authorize and if the process successfully, the browser will ask you to open a new VS Code instance. After, you can click <strong>Start call</strong> button to open voice communication as well. Click <strong>Copy Invite link</strong> to invite your co-workers. The link can be sent in any type of electronic media, e.g. email, messaging app or SMS. Currently, the link has a pattern like this : <a href="https://prod.liveshare.vsengsaas.visualstudio.com/join?D455B18776BD2355FFE1E9F4CBE389F36B12">https://prod.liveshare.vsengsaas.visualstudio.com/join?&lt;a unique code&gt;</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0KD_YRfVoIw8GwQpLCJSw.png" /><figcaption>Copy your collaboration link to your co-worker</figcaption></figure><h4>2. Accept pair invitation</h4><p>After your co-workers visited the link, the browser will suggest to create a new instance of VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKKFerY8U8-m7ciARFlNlQ.png" /><figcaption>Your co-worker open VS Code instance</figcaption></figure><p>In order to have a convenience, it’s possible to perform voice communication as well by clicking <strong>Join</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFW9F7soCa3MUXLNJJeYdQ.png" /></figure><p>Anything you done will influenced to your co-worker editor as shown below. You will hear your co-worker voice instantly. You or your co-worker capable to change any code and review both side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f8iBbGlkWihDN7iP3qZQ6A.png" /><figcaption>You can monitor any change made by your co-worker and vise versa</figcaption></figure><h3>Conclusion</h3><p>During this pandemic period, you still capable to perform pair programming just like your co-worker sit next to you. No barrier between except the location. You still get the benefit from pair programming and the most important is productive when working remotely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuBQwdI-6m6y9XpdmJvg6Q.png" /></figure><h3>Reference</h3><ol><li><a href="https://www.flexjobs.com/blog/post/benefits-of-remote-work/">https://www.flexjobs.com/blog/post/benefits-of-remote-work/</a></li><li><a href="https://moduscreate.com/blog/remote-pair-programming-made-easy-with-vscode-live-share/">https://moduscreate.com/blog/remote-pair-programming-made-easy-with-vscode-live-share/</a></li><li><a href="https://code.visualstudio.com/blogs/2017/11/15/live-share">https://code.visualstudio.com/blogs/2017/11/15/live-share</a></li><li><a href="https://medium.com/better-programming/when-pair-programming-works-it-works-really-well-heres-why-c51857bbcf0f">https://medium.com/better-programming/when-pair-programming-works-it-works-really-well-heres-why-c51857bbcf0f</a></li><li><a href="https://medium.com/@ibrahimbutt/how-to-set-up-vscode-for-remote-pair-programming-e5f5c30a48e2">https://medium.com/@ibrahimbutt/how-to-set-up-vscode-for-remote-pair-programming-e5f5c30a48e2</a></li><li><a href="https://medium.com/@waqas716/when-to-prefer-pair-programming-over-peer-reviews-886e1bc423af">https://medium.com/@waqas716/when-to-prefer-pair-programming-over-peer-reviews-886e1bc423af</a></li><li><a href="https://medium.com/globalluxsoft/are-two-heads-better-than-one-learning-more-about-pair-programming-130fe081141e">https://medium.com/globalluxsoft/are-two-heads-better-than-one-learning-more-about-pair-programming-130fe081141e</a></li><li><a href="https://blog.kmkonline.co.id/from-single-to-pair-programming-415b22f66d16">https://blog.kmkonline.co.id/from-single-to-pair-programming-415b22f66d16</a></li><li><a href="https://www.ciodive.com/news/pair-programming-remote-work-enterprise/582455/">https://www.ciodive.com/news/pair-programming-remote-work-enterprise/582455/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28c44395ca6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/it-paragon/remote-pair-programming-still-productive-at-this-pandemic-period-d28c44395ca6">Remote Pair Programming: Still Productive at This Pandemic Situation</a> was originally published in <a href="https://medium.com/it-paragon">IT Paragon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>