<?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 IB Teguh TM on Medium]]></title>
        <description><![CDATA[Stories by IB Teguh TM on Medium]]></description>
        <link>https://medium.com/@teguhteja?source=rss-b76e2e5c0c7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_68brC9sC1eqYTmcXFB91A.png</url>
            <title>Stories by IB Teguh TM on Medium</title>
            <link>https://medium.com/@teguhteja?source=rss-b76e2e5c0c7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 06:16:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@teguhteja/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[Odoo March 2025 Tutorials — teguhteja.id]]></title>
            <link>https://medium.com/@teguhteja/odoo-march-2025-tutorials-teguhteja-id-4b987ac08e6c?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b987ac08e6c</guid>
            <category><![CDATA[odoo18]]></category>
            <category><![CDATA[odoo-17]]></category>
            <category><![CDATA[odoo-tutorials]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 13:42:16 GMT</pubDate>
            <atom:updated>2025-05-12T23:14:58.852Z</atom:updated>
            <content:encoded><![CDATA[<h3>Odoo March 2025 Tutorials — teguhteja.id</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/0*U--J8we0AHiicFoA" /></figure><p><a href="https://www.odoo.com/event/odoo-technical-training-in-march-2025-7276/register">Welcome</a> to your definitive guide for . Indeed, this collection represents a significant learning opportunity, covering diverse topics essential for mastering Odoo, from fundamental configurations and HR management to intricate development techniques like website customization, performance optimization, and API integrations. Consequently, whether you are a new user seeking foundational knowledge or an experienced developer aiming to refine your skills, these <strong>Odoo March 2025 Tutorials</strong> offer valuable, step-by-step instructions and insights published throughout the month. Therefore, let’s explore the key learnings available from March 2025.</p><h3>Getting Started: Core Concepts and Setup Guides from March 2025</h3><p>Initially, several <strong>Odoo March 2025 Tutorials</strong> focused on establishing the foundational elements within the Odoo environment. Mastering these basics is crucial before tackling more complex customizations or workflows.</p><h3>March 2025 Odoo Guide: Operating Unit Setup with OCA</h3><p>Firstly, one of the key <strong>Odoo March 2025 Tutorials</strong> detailed the setup of Operating Units using Odoo Community Association (OCA) modules. Subsequently, understanding this configuration allows businesses to effectively manage multiple branches or distinct operational departments within a single Odoo instance, ensuring data segregation where needed. Furthermore, the tutorial specifically utilizes OCA modules, which often provide extended functionalities beyond standard Odoo features for multi-company or multi-branch scenarios. Therefore, you will learn how to configure these units step-by-step, defining their specific users, journals, and operational flows. As a result, this streamlines operations and provides clearer reporting lines across different business segments.</p><h3>March Tutorial: Mastering Company Properties Fields</h3><p>Next, another fundamental topic covered in the <strong>Odoo March 2025 Tutorials</strong> was the Company Properties Field. Importantly, this feature is essential for managing company-specific attributes and settings, particularly in multi-company environments within Odoo. Consequently, the tutorial explains how these fields work and how you can leverage them to store and manage distinct information for each company entity configured in your system. Moreover, properly utilizing company properties ensures data accuracy and simplifies configurations when dealing with multiple legal entities or operational companies under one Odoo database. Ultimately, this leads to improved business efficiency and easier system administration.</p><h3>Odoo March 2025 Lesson: Decimal Pricing Adjustments</h3><p>Additionally, precise pricing is critical in any business, and an <strong>Odoo March 2025 Tutorial</strong> addressed decimal pricing adjustments. Specifically, this guide focuses on how to modify the number of decimal places used for product prices within Odoo. Therefore, businesses requiring higher precision in their pricing models, perhaps due to low-unit costs or specific industry standards, will find this tutorial invaluable. Subsequently, the guide walks you through the necessary configuration steps within Odoo’s settings to achieve the desired level of pricing accuracy. As a result, you can ensure your financial calculations and product catalogs reflect prices with the exact precision your business demands.</p><h3>March 2025 Odoo Setup: Domain &amp; Hosting for Odoo 18 Websites</h3><p>Furthermore, launching a website requires proper domain and hosting setup, a topic addressed in the <strong>Odoo March 2025 Tutorials</strong> specifically for Odoo 18. Consequently, this tutorial provides practical, step-by-step instructions for configuring your domain name to point to your Odoo instance and managing the hosting environment. Moreover, it covers essential aspects like file uploads and extraction, simplifying the technical process of getting your Odoo-powered website live. Therefore, following this guide helps ensure a smooth launch and a correctly configured online presence built on Odoo 18.</p><h3>Secure Installation Guide: Proxy HTTPS for Odoo 18 (March 2025)</h3><p>Similarly, security is paramount for any web-facing application, and another crucial <strong>Odoo March 2025 Tutorial</strong> focused on setting up HTTPS using a proxy for Odoo 18 installations. Subsequently, this guide explains the importance of HTTPS for encrypting data between the server and users, protecting sensitive information. Furthermore, it details the configuration steps required to set up a reverse proxy (like Nginx or Apache) to handle SSL/TLS termination, ensuring secure connections to your Odoo instance. Therefore, implementing these steps is vital for securing your Odoo deployment and building trust with your users.</p><h3>Enhancing Human Resources: Odoo HR Tutorials from March 2025</h3><p>Odoo’s HR module offers comprehensive tools for managing employees, fleet, appraisals, and recruitment. Several <strong>Odoo March 2025 Tutorials</strong> provided deep dives into specific HR functionalities.</p><h3>March Odoo HR Tutorial: Adding and Servicing Vehicles</h3><p>Firstly, managing company vehicles efficiently is a common HR and operational challenge. Consequently, two related <strong>Odoo March 2025 Tutorials</strong> covered vehicle management within Odoo HR. The first guide explains step-by-step how to add vehicles to the system, capturing essential details like model, license plate, and assignment. Subsequently, the second tutorial focuses on servicing these vehicles, demonstrating how Odoo HR helps track maintenance schedules, repairs, and associated costs. Furthermore, these guides show how integrating fleet management within HR centralizes data, improves tracking, and potentially integrates with other modules like Accounting or Maintenance. Therefore, businesses can streamline fleet operations and ensure vehicle upkeep effectively.</p><h3>Odoo HR March 2025 Guide: Conducting Appraisals</h3><p>Next, employee appraisals are vital for performance management and development. Accordingly, an <strong>Odoo March 2025 Tutorial</strong> provided a step-by-step guide on conducting appraisals using Odoo Human Resources. This tutorial explains how to set up appraisal forms, schedule evaluation meetings, collect feedback from managers and employees, and track appraisal progress within the system. Moreover, it likely highlights best practices for using Odoo’s tools to ensure a fair, transparent, and constructive appraisal process. As a result, organizations can streamline their performance reviews and foster employee growth more effectively using Odoo HR.</p><h3>March 2025 Odoo Lesson: Setting Appraisal Goals</h3><p>Building upon appraisals, another <strong>Odoo March 2025 Tutorial</strong> specifically addressed setting appraisal goals within Odoo HR. Consequently, this guide focuses on defining clear, measurable objectives for employees as part of the appraisal cycle. Furthermore, it demonstrates how to document these goals within Odoo, link them to appraisal forms, and track progress towards their achievement throughout the evaluation period. Therefore, using Odoo to manage appraisal goals helps align individual objectives with company targets and provides a structured framework for performance discussions.</p><h3>Odoo HR Tutorial (March 2025): Implementing Referral Points</h3><p>Additionally, employee referrals can be a powerful recruitment tool. An <strong>Odoo March 2025 Tutorial</strong> explained how to implement a referral points system using Odoo HR. Subsequently, this guide details the configuration of point values for successful referrals, the process for employees to submit referrals, and how the system tracks these referrals and associated points. Moreover, it likely discusses how to set up rewards linked to accumulated points, thereby motivating employees to participate actively in the recruitment process. As a result, companies can leverage their existing workforce to find quality candidates more efficiently.</p><h3>March 2025 Odoo Insider: Switzerland HR &amp; Payroll Focus</h3><p>Finally, for businesses operating in specific regions, localized HR practices are essential. An <strong>Odoo March 2025 Tutorial</strong> under the “Odoo Insider” banner focused specifically on mastering Switzerland HR and payroll management. Consequently, this guide delves into configurations relevant to Swiss regulations, potentially covering aspects like social security contributions, tax calculations, and specific reporting requirements. Furthermore, it might highlight how tools like Odoo Studio can be used for necessary customizations and how features like multi-edit streamline payroll processing, ensuring compliance and efficiency for Swiss operations.</p><h3>Odoo Development &amp; Customization: March 2025 Tutorials</h3><p>A significant portion of the <strong>Odoo March 2025 Tutorials</strong> catered to developers, covering module creation, website customization, controllers, views, and performance optimization.</p><h3>Foundational Development: Scaffold Command &amp; Data Loading</h3><p>Initially, for those starting with Odoo development, an <strong>Odoo March 2025 Tutorial</strong> explained the scaffold command. Subsequently, this command provides a basic structure for creating new custom modules, significantly speeding up the initial setup process. Therefore, the tutorial guides developers on using this command effectively and understanding the generated file structure.</p><p>Furthermore, multiple tutorials addressed data loading, a fundamental aspect of setting up or migrating Odoo instances. One guide provided a general overview of creating records using both XML and CSV files, explaining their differences and use cases. Consequently, developers learn the standard methods for populating Odoo with initial or imported data.</p><h3>Advanced Data Handling: XML &amp; CSV Techniques (March 2025)</h3><p>Building on basic data loading, several <strong>Odoo March 2025 Tutorials</strong> explored more advanced techniques using XML and CSV files.</p><ul><li><strong>XML </strong><strong>eval Attribute &amp; Images:</strong> Another guide explained the use of the eval attribute in XML files, particularly for setting dynamic values or adding image fields (binary data) during import.</li><li><strong>Many2one Fields (XML &amp; CSV):</strong> Two separate tutorials detailed how to handle Many2one relationship fields when importing data. One focused on the XML method, explaining the structure for linking records, while the other covered the CSV import process, often requiring external IDs or database IDs.</li></ul><h4>XML &amp; CSV Techniques</h4><h3>Odoo Controllers and Routes Tutorials (March 2025)</h3><p>Moreover, controlling web page behavior and defining URLs (routes) is central to Odoo website development. Several <strong>Odoo March 2025 Tutorials</strong> focused on this area:</p><h3>Odoo Website &amp; Portal Customization Tutorials (March 2025)</h3><p>Furthermore, tailoring the user experience on the Odoo website and customer portal was a recurring theme in the <strong>Odoo March 2025 Tutorials</strong>:</p><h4>Odoo Website &amp; Portal Customization Tutorials</h4><h3>Advanced Odoo Development Topics (March 2025)</h3><p>Additionally, the <strong>Odoo March 2025 Tutorials</strong> covered several advanced development concepts:</p><ul><li><strong>with_context Usage:</strong> This tutorial explained the powerful with_context method in Odoo ORM, used to pass contextual information (like language, timezone, or custom flags) down through method calls, influencing behavior dynamically.</li><li><strong>get_view() Method:</strong> Focusing on view customization, this guide explored the get_view() (or fields_view_get) method, allowing developers to dynamically modify view architectures (like forms or lists) based on context or user permissions.</li></ul><h4>Advanced Odoo Development Topics</h4><h3>Odoo Performance and Integration Tutorials (March 2025)</h3><p>Finally, ensuring Odoo runs smoothly and integrates well with other systems is crucial. The <strong>Odoo March 2025 Tutorials</strong> included guides on performance and integrations.</p><h3>Odoo Performance Optimization Techniques</h3><p>Firstly, a vital tutorial addressed Odoo performance optimization. Subsequently, it covered essential database techniques like proper indexing to speed up queries, understanding the use of savepoints in transactions, and comparing the performance implications of using lists of IDs versus subqueries in ORM searches. Therefore, applying these techniques can significantly boost database speed and overall system reliability.</p><h3>Real-Time Chat Configuration</h3><p>Next, for real-time features like Odoo’s live chat, proper server configuration is key. Consequently, an <strong>Odoo March 2025 Tutorial</strong> focused on configuring multiprocess workers (longpolling) for the chat system. Furthermore, it addressed common connection issues and explained how to set up proxies correctly to ensure optimal live chat performance and reliability.</p><h3>WhatsApp Integration Guide</h3><p>Additionally, integrating Odoo with popular communication platforms enhances customer interaction. An <strong>Odoo March 2025 Tutorial</strong> provided a complete configuration guide for WhatsApp integration. Subsequently, it detailed the steps for connecting a WhatsApp Business account, generating necessary tokens, configuring webhooks for message handling, and exploring practical applications across various Odoo modules (like CRM or Sales). Therefore, businesses can centralize communication and automate interactions using this popular channel.</p><h3>Business Application Tutorials from March 2025</h3><p>Beyond technical guides, several <strong>Odoo March 2025 Tutorials</strong> focused on specific business applications and workflows within Odoo.</p><h3>CRM and Sales Enhancement Tutorials</h3><h3>Operational and Management Tutorials</h3><h3>Emerging Technologies and Certification</h3><h3>Wrapping Up Your Odoo March 2025 Learning Journey</h3><p>Ultimately, the collection of <strong>Odoo March 2025 Tutorials</strong> offers a substantial and diverse range of learning materials for Odoo users and developers. Indeed, from setting up core functionalities like operating units and managing HR processes to diving deep into website customization, data handling, performance tuning, and specific business applications, these guides provide practical, actionable steps. Consequently, by exploring these <strong>Odoo March 2025 Tutorials</strong>, individuals and businesses can significantly enhance their understanding and utilization of the Odoo platform. Therefore, we encourage you to delve into the specific tutorials relevant to your needs and continue expanding your Odoo expertise. Remember to check the source links provided for the full, detailed instructions in each guide.</p><p><em>Originally published at </em><a href="https://teguhteja.id/odoo-march-2025-tutorials-your-complete-learning-path/?swcfpc=1"><em>https://teguhteja.id</em></a><em> on May 12, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b987ac08e6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo Tutorials February 2025 — teguhteja.id]]></title>
            <link>https://medium.com/@teguhteja/odoo-tutorials-february-2025-teguhteja-id-8b96e934f170?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b96e934f170</guid>
            <category><![CDATA[odoo-tutorials]]></category>
            <category><![CDATA[odoo18]]></category>
            <category><![CDATA[odoo-17]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 13:07:15 GMT</pubDate>
            <atom:updated>2025-05-12T23:13:17.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>Odoo Tutorials February 2025 — teguhteja.id</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/0*Jn_mOt8Yj7AvNicS" /></figure><p><a href="https://ice-indonesia.com/id/event/-odoo-business-show-2025">Welcome</a> to your comprehensive roundup of <strong>Odoo Tutorials February 2025</strong>! Consequently, this post gathers all the insightful Odoo guides and step-by-step instructions published throughout the month. Furthermore, whether you aimed to enhance your Odoo development skills, master specific modules, or streamline your ERP processes, February offered a wealth of knowledge. Therefore, we have compiled these valuable resources here for easy access, helping you navigate everything from XML view customization and module development to automation, integration, and application-specific setups. Ultimately, let’s dive into the essential Odoo learning materials from February 2025.</p><h3>Diving into Odoo Development Tutorials (February 2025)</h3><p>February was undoubtedly a busy month for Odoo developers seeking to refine their skills. Moreover, we explored numerous tutorials covering core development concepts, view customizations, and environment setups. Odoo Tutorials February 2025</p><h3>Mastering Odoo Views: Form, Graph, Kanban, Search, List Guides</h3><p>Effectively customizing Odoo’s views is crucial for creating user-friendly applications. Thus, February featured several tutorials focused on different view types.</p><h4>Odoo Form View Notebook Page Tutorial (Feb 28)</h4><p>Initially, we learned how to enhance Odoo form views significantly. Specifically, this tutorial demonstrates adding a notebook page using XML code, thereby organizing complex forms logically. Following the steps allows you to create cleaner interfaces for better data management.</p><h4>Odoo Graph View Chart Creation Tutorial (Feb 27)</h4><p>Next, visualizing data effectively is simple with Odoo’s graph views. Consequently, this guide walks you through building interactive bar, pie, and line charts using XML. As a result, you can represent data like student profiles dynamically and gain clearer insights.</p><h4>Custom Odoo Kanban View Guide (Feb 25)</h4><p>Furthermore, Kanban views offer excellent visual workflow management. Therefore, this tutorial focuses on enhancing task management within Odoo 17 by customizing Kanban views through XML. Subsequently, you learn to build dynamic, responsive Kanban templates to streamline workflows.</p><h4>Odoo Kanban Progress Bar Implementation (Feb 23)</h4><p>Adding visual cues improves clarity immensely. Correspondingly, this Odoo Kanban tutorial shows precisely how to add progress bar indicators directly onto Kanban cards. This simple addition significantly enhances task tracking visibility.</p><h4>Odoo Kanban Drag &amp; Drop Functionality (Feb 15)</h4><p>Moreover, interactivity enhances user experience greatly. This development tutorial explains how to implement drag-and-drop functionality within Odoo’s Kanban views, thereby making workflow management more intuitive and dynamic for users.</p><h4>Adding Images to Odoo Kanban Views (Feb 15)</h4><p>Visual elements make Kanban boards more engaging. Hence, this guide provides step-by-step instructions for seamlessly integrating images into your Odoo Kanban views, improving visual representation and user experience.</p><h4>Odoo Search View Filter Setup Tutorial (Feb 17)</h4><p>Efficient data retrieval starts with powerful search views. Consequently, this Odoo 17 tutorial details robust filter setup using XML configuration. Additionally, it provides practical solutions for common syntax errors, enabling better data navigation.</p><h4>Odoo List View Customization Tutorials (Feb 16, 14, 13, 12)</h4><p>List views are fundamental in Odoo, and several tutorials focused on their customization. For instance, we covered adding headers and buttons ( <a href="https://teguhteja.id/odoo-list-views-how-to-add-headers-and-buttons/">Source Feb 16</a>, <a href="https://teguhteja.id/odoo-list-view-add-headers-buttons-tutorial/">Source Feb 14</a>), implementing buttons to open form views directly ( <a href="https://teguhteja.id/odoo-open-form-view-button-implementation-guide/">Source Feb 13</a>), and adjusting field widths and labels for optimal display ( <a href="https://teguhteja.id/odoo-list-view-customization-width-labels-guide/">Source Feb 12</a>). Collectively, these guides empower you to tailor list views precisely.</p><h4>Odoo List View Group-By Configuration (Feb 14)</h4><p>Additionally, organizing records effectively often involves grouping. This tutorial demonstrates configuring ‘group by’ options within Odoo list views by modifying XML and Python code, thus enabling custom grouping for efficient record management.</p><h4>Odoo List View Field Decoration Guide (Feb 14)</h4><p>Finally, enhancing visual appeal helps users quickly interpret data. This guide details integrating field-level decorations (like badges or colors based on conditions) into Odoo list views, thereby improving interface design and usability.</p><h3>Essential Odoo Configuration &amp; Setup Tutorials</h3><p>Proper configuration and environment setup form the foundation of any successful Odoo implementation. Therefore, February included guides on these vital aspects.</p><h4>Odoo 18 ERP Implementation Guide (Feb 28)</h4><p>Firstly, implementing an ERP system requires careful planning. This comprehensive guide covers Odoo 18 ERP implementation and optimization, offering clear, step-by-step strategies for setup, training, and continuous improvement to boost business performance.</p><h4>Odoo 17 System Parameter Configuration (Feb 26)</h4><p>Secondly, fine-tuning Odoo often involves system parameters. This tutorial provides step-by-step insights for advanced system parameter configuration specifically for Odoo 17, allowing for deeper customization.</p><h4>Odoo 18 Development Environment Setup (Feb 22)</h4><p>Thirdly, a smooth development process starts with a correctly configured environment. This guide provides detailed steps for installing, configuring, and troubleshooting an Odoo 18 development environment, including practical tips and best practices.</p><h4>Docker Networking with Static IPs for Odoo (Feb 25)</h4><p>Furthermore, containerization simplifies deployment. This tutorial focuses on Docker networking, specifically demonstrating how to configure static IPs for Odoo and PostgreSQL containers, thereby streamlining complex setups.</p><h4>Python UV for Odoo Environments (Feb 22)</h4><p>Lastly, managing Python environments efficiently is key. This tutorial introduces Python UV, showing how it empowers developers to rapidly build multi-version Python environments suitable for various Odoo setups.</p><h3>Odoo Automation &amp; Integration Tutorials</h3><p>Automating processes and integrating Odoo with other systems unlocks significant efficiency gains. Consequently, several February tutorials addressed these areas.</p><h4>Odoo 17 Webhook Automation Guide (Feb 27)</h4><p>Initially, webhooks simplify real-time data exchange. This step-by-step guide explains how to use webhooks in Odoo 17 for automation rules and data integration, including code examples for sending and receiving JSON data.</p><h4>Creating Records via Odoo Webhook (Feb 26)</h4><p>Building on webhook integration, this tutorial specifically demonstrates how to create new records in Odoo 17 securely via webhook automation, complete with code examples and Postman testing instructions.</p><h4>Odoo API Key Integration with Postman (Feb 17)</h4><p>Moreover, interacting with Odoo programmatically often involves APIs. This comprehensive tutorial covers integrating with Odoo using API keys and the Postman tool, detailing everything from key creation to making JSON-RPC requests.</p><h4>Odoo Shopee Connector Guide (Feb 21)</h4><p>Finally, e-commerce integration is vital for many businesses. This guide introduces the Odoo Shopee Connector, explaining how it provides seamless integration for omnichannel commerce by synchronizing inventory and enabling mass updates.</p><h3>Exploring Odoo Module Development Techniques (February 2025)</h3><p>Developing custom modules extends Odoo’s functionality significantly. Thus, February’s tutorials also covered various aspects of module creation and enhancement.</p><h3>Working with Odoo Data: XML, CSV, Methods Guides</h3><p>Handling data correctly is fundamental to module development. Therefore, we explored tutorials on data files, methods, and import/export formats.</p><h4>Odoo name_create Method Tutorial (Feb 27)</h4><p>Firstly, the name_create method offers powerful record creation capabilities. This tutorial provides a comprehensive look at using this method effectively, including override techniques and best practices for Odoo customization.</p><h4>Odoo XML Tutorials: Records, Functions, Delete (Feb 20)</h4><p>Secondly, XML files are central to Odoo development. Several tutorials focused on XML: one detailed correct record creation, managing noupdate, forcecreate, and X2many types ( <a href="https://teguhteja.id/odoo-xml-tutorial-for-correct-record-creation/">Source</a>); another explained mastering function tags for advanced actions ( <a href="https://teguhteja.id/odoo-xml-function-tutorial-advanced-guide/">Source</a>); and a third provided a guide for safely deleting records via XML ( <a href="https://teguhteja.id/odoo-xml-delete-tutorial-for-removing-records-effectively/">Source</a>).</p><h4>Odoo Data Files &amp; Binary Fields in XML (Feb 20, 19)</h4><p>Furthermore, managing data files and binary data requires specific techniques. One tutorial explained adding records via XML data files, incorporating Many2one relationships, and encoding binary data ( <a href="https://teguhteja.id/odoo-data-files-tutorial-add-records-through-xml/">Source Feb 20</a>). Another focused specifically on adding and handling binary fields (like file uploads) within Odoo XML files ( <a href="https://teguhteja.id/odoo-xml-adding-binary-fields/">Source Feb 19</a>).</p><h4>CSV Record Import Tutorial for Odoo (Feb 24)</h4><p>Alternatively, CSV files offer a common way to manage data externally. This tutorial teaches how to efficiently add and manage records via CSV files in Odoo, boosting your setup and data integration capabilities.</p><h4>XML vs CSV Data Import Comparison (Feb 11)</h4><p>Finally, choosing the right import format matters. This guide provides a complete comparison of XML and CSV data import formats in Odoo, discussing their use cases to help implement efficient data migration strategies.</p><h3>Enhancing Odoo Modules: Settings, Security, Code Quality Guides</h3><p>Beyond basic functionality, robust modules require configuration options, security considerations, and high-quality code.</p><h4>Adding Settings to Odoo 17 Modules (Feb 19)</h4><p>Firstly, allowing users to configure modules enhances flexibility. This code-focused tutorial demonstrates how to add custom settings pages to your Odoo 17 modules, thereby improving usability and customization.</p><h4>Flake8 Pre-commit for Odoo Code Quality (Feb 27)</h4><p>Secondly, maintaining code quality is essential for long-term maintainability. This guide explains how to integrate Flake8 with pre-commit hooks for Odoo development, automatically checking code style and quality before commits.</p><h4>Raising Exceptions in Odoo Tutorial (Feb 21)</h4><p>Thirdly, proper error handling makes applications more robust. This comprehensive tutorial explains robust exception handling techniques in Odoo, covering active coding methods, real-world examples, and best practices.</p><h4>Odoo User Group Selection (res.group) Guide (Feb 24)</h4><p>Lastly, managing user access is critical for security. This tutorial explores res.group selection in Odoo 17, demonstrating how implied_ids chaining simplifies group inheritance and access rights configuration.</p><h3>Odoo Application Specific Tutorials (February 2025)</h3><p>Many tutorials focused on specific Odoo applications like HR, BI, Manufacturing, and CRM, providing targeted guidance.</p><h3>Odoo HR Module Tutorials: Recruitment, Time Off, Attendance Guides</h3><p>The Odoo HR suite saw significant coverage in February.</p><ul><li><strong>Interview Scheduling (Feb 25):</strong> Automate interview setups and streamline recruitment communication. <a href="https://teguhteja.id/odoo-interview-scheduling-tutorial/">Source</a></li><li><strong>Adding Applicants (Feb 21):</strong> Master the complete recruitment workflow, managing candidates from multiple channels. <a href="https://teguhteja.id/adding-applicants-in-odoo-recruitment-guide/">Source</a></li><li><strong>Time Off Accrual Plans (Feb 24):</strong> Learn to set up and manage time off accrual plans effectively. <a href="https://teguhteja.id/accrual-plans-odoo-time-off-tutorial-setup/">Source</a></li><li><strong>Time Off CSV Import (Feb 18):</strong> Use CSV import for managing employee time off allocations, including error resolution. <a href="https://teguhteja.id/install-hr-time-off-csv-import-odoo-hr-tutorial/">Source</a></li><li><strong>Attendance Management (Feb 16):</strong> A complete guide covering employee check-in, kiosk setup, and workforce tracking. <a href="https://teguhteja.id/odoo-attendance-management-employee-check-in-tutorial/">Source</a></li></ul><h3>Odoo Business Intelligence (BI) Tutorials</h3><p>Leveraging data for insights was another key theme.</p><ul><li><strong>BI View Editor (Feb 24):</strong> Empower non-technical users to build custom reports by merging data using a drag-and-drop interface. <a href="https://teguhteja.id/odoo-bi-view-editor-custom-reports-tutorial/">Source</a></li><li><strong>BI Dashboard &amp; Spreadsheet Reporting (Feb 22):</strong> Transform raw data into interactive dashboards and spreadsheets for efficient decision-making. <a href="https://teguhteja.id/odoo-bi-reporting-dashboard-tutorial/">Source</a></li></ul><h3>Other Odoo Application Tutorials</h3><p>February also featured guides for other specific Odoo areas:</p><ul><li><strong>MRP Backorder Management (Feb 19):</strong> Streamline production and improve visibility by managing manufacturing backorders effectively. <a href="https://teguhteja.id/manufacturing-backorders-a-comprehensive-guide-to-odoo-mrp/">Source</a></li><li><strong>Fixed Currency Rate Application (Feb 23):</strong> Apply fixed currency rates on product pricelists in Odoo 18 using an OCA module for consistent pricing. <a href="https://teguhteja.id/fixed-currency-rate-apply-product-pricelist-odoo18/">Source</a></li><li><strong>Analytic Budget Spends Tracking (Feb 17):</strong> Monitor analytic budget spends in Odoo 18 in real-time, configure purchase orders, and optimize spending. <a href="https://teguhteja.id/analytic-budget-spends-odoo18-tutorial/">Source</a></li><li><strong>Predictive Lead Scoring (CRM) (Feb 15):</strong> Utilize data insights and automation in Odoo CRM to transform lead management and prioritize sales efforts. <a href="https://teguhteja.id/predictive-lead-scoring-odoo-crm-tutorial/">Source</a></li><li><strong>GeoWidget Map Integration (Feb 25):</strong> Create dynamic geolocation maps within Odoo using Leaflet via the OdooGeoWidget for enhanced visualization. <a href="https://teguhteja.id/odoogeowidget-integrate-geolocation-maps-in-odoo/">Source</a></li></ul><h3>Beyond Odoo: Related Tech Tutorials (February 2025)</h3><p>While the focus was heavily on Odoo, February also included tutorials on related technologies beneficial to developers and data professionals:</p><ul><li><strong>AI &amp; Development:</strong> AI for Research Writing, GitHub Copilot in VS Code.</li><li><strong>Python:</strong> functools.partial, Python Memory Optimization, OCR with SpaCy Layout, Gaussian Elimination, Clustering (Hierarchical, K-means), Pandas (GroupBy, Pivot Tables, Sorting, Datetime, Categorical Data, Correlation, Aggregation), Data Analysis/Preprocessing/Scaling.</li><li><strong>Linux &amp; Tools:</strong> AWK Text Processing, OwlDevtools Debugging.</li><li><strong>Concepts:</strong> OOP Design Patterns &amp; SOLID.</li></ul><p>These resources complement the Odoo-specific knowledge, broadening the technical skillset.</p><h3>Conclusion: Your February 2025 Odoo Learning Path</h3><p>In summary, February 2025 provided an extensive collection of Odoo tutorials covering a vast range of topics. From fundamental view customizations and module development practices to advanced automation, integration, and application-specific guides, these resources offer substantial learning opportunities. Consequently, this compilation of <strong>Odoo Tutorials February 2025</strong> serves as your essential guide to revisiting these valuable lessons. Therefore, we encourage you to explore the linked tutorials further and continue enhancing your Odoo expertise. Keep learning and building amazing things with Odoo!</p><h3>Another Tutorial in Machine Learning</h3><p>Explore Linkage Criteria in Hierarchical Clustering. Understand Single, Complete, Average Linkage, and Ward’s Method to enhance your clustering skills. #DataScience #Clustering #MachineLearning</p><p>Source: (https://teguhteja.id/linkage-criteria-in-hierarchical-clustering-a-tutorial/)</p><p>Distance Metrics play a crucial role in hierarchical clustering. Our comprehensive tutorial covers implementing Euclidean, Manhattan, and Cosine distances in Python. #MachineLearning #DataScience</p><p>Source: (https://teguhteja.id/distance-metrics-in-hierarchical-clustering/)</p><p>Discover how to implement hierarchical clustering in Python with our detailed tutorial. Perfect for #DataScientists and #ML engineers looking to master clustering algorithms. Includes code examples, visualizations, and practical applications. #Programming</p><p>Source: (https://teguhteja.id/hierarchical-clustering-python-step-by-step-implementation-guide/)</p><p>Master K-means Clustering with Rand Index and Adjusted Rand Score. Unlock valuable insights into your data by grouping and evaluating points for maximum clarity. #kmeans #clustering</p><p>Source: (https://teguhteja.id/k-means-clustering-master-rand-index-adjusted-rand-score/)</p><p>Learn how K-means clustering transforms data into structured insights. Discover how to choose the right number of clusters and set initial centroids. #DataScienceTutorial</p><p>Source: (https://teguhteja.id/k-means-clustering-how-to-select-clusters-and-initialize-centroids/)</p><h3>Another Tutorial in Machine Learning (ii)</h3><p>K-means clustering visualization guide: Learn to create stunning cluster visualizations with Matplotlib and the Iris dataset. Master data visualization techniques and implement machine learning clustering in Python.</p><p>Source: (https://teguhteja.id/k-means-clustering-visualization-guide-matplotlib-iris-dataset/)</p><p>Dive into K-means clustering with Python! This guide covers implementation, optimization techniques, and real-world applications with practical code examples. Perfect for data scientists and ML enthusiasts</p><p>Source: (https://teguhteja.id/k-means-clustering-python-guide-master-unsupervised-learning/)</p><p>Source: (https://teguhteja.id/data-analysis-techniques-master-multiple-methods-for-deeper-insights/)</p><p>Discover essential data preprocessing techniques in our detailed guide. Learn how to clean, transform, and prepare your datasets for analysis using Python. Perfect for data scientists and analysts.</p><p>Source: (https://teguhteja.id/data-preprocessing-techniques-a-complete-guide-to-clean-your-dataset-in-2024/)</p><p>Master Pandas groupby operations: From basic aggregations to advanced transformations. Discover practical techniques for complex data analysis, custom metrics, and performance optimization. #DataScience #Python #Pandas</p><p>Source: (https://teguhteja.id/pandas-groupby-operations-comprehensive-guide-data-analysis/)</p><p>Source: (https://teguhteja.id/data-scaling-techniques-essential-guide-machine-learning-success/)</p><h3>Another Tutorial in Machine Learning (iii)</h3><p>Master Python data analysis with pandas pivot tables! This comprehensive guide covers everything from basic pivot operations to advanced visualizations, including time-based analysis, memory optimization, and best practices. Perfect for data analysts and</p><p>Source: (https://teguhteja.id/pandas-pivot-tables-comprehensive-guide-python-data-analysis/)</p><p>Master data sorting and ranking techniques using Python’s Pandas library. Learn practical examples, advanced methods, and best practices for efficient data analysis. Perfect for data scientists and analysts.</p><p>Source: (https://teguhteja.id/data-sorting-techniques-master-pandas-for-efficient-data-analysis/)</p><p>Source: (https://teguhteja.id/python-datetime-guide-master-date-manipulation-pandas-data-analysis/)</p><p>Explore how to manage and encode categorical data in Pandas for better performance and efficiency! Join us to master these essential skills. #DataScience #Pandas</p><p>Source: (https://teguhteja.id/categorical-data-handling-in-pandas/)</p><p>Explore data correlation analysis techniques for data science professionals. Learn statistical methods, implementation strategies, and best practices for uncovering meaningful relationships in your data.</p><p>Source: (https://teguhteja.id/data-correlation-analysis-master-statistical-relationships-python/)</p><p>Comprehensive guide to data aggregation in Pandas. Learn how to efficiently summarize and analyze large datasets, implement custom aggregation functions, and optimize your data analysis workflow.</p><p>Source: (https://teguhteja.id/data-aggregation-pandas-essential-techniques-analysis/)</p><p>Comprehensive guide to Pandas GroupBy operations for data professionals. Learn essential grouping techniques, optimization strategies, and real-world applications. Perfect for analysts and data scientists.</p><p>Source: (https://teguhteja.id/pandas-groupby-operations-master-data-analysis-guide/)</p><p><em>Originally published at </em><a href="https://teguhteja.id/odoo-tutorials-february-2025-essential-guide/?swcfpc=1"><em>https://teguhteja.id</em></a><em> on May 12, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b96e934f170" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List Machine Learning Tutorial — teguhteja.id]]></title>
            <link>https://medium.com/@teguhteja/list-machine-learning-tutorial-teguhteja-id-74c3fe9181c5?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c3fe9181c5</guid>
            <category><![CDATA[machine-learning-tutorial]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 12:46:15 GMT</pubDate>
            <atom:updated>2025-05-12T23:11:06.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>List Machine Learning Tutorial — teguhteja.id</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/0*80bJMGqebZFwFwQs" /></figure><h3>Introduction: Starting Your Machine Learning Journey</h3><p><a href="https://codesignal.com/learn/course-paths/browse?collection=clxv0c62e000c6npk5d8douqp">Welcome</a>! This <strong>List Machine Learning Tutorial</strong> serves as your essential guide; consequently, it helps you navigate the exciting and rapidly evolving world of machine learning (ML). Furthermore, understanding machine learning opens doors to powerful data analysis and prediction capabilities. Indeed, this tutorial provides a structured path, listing key concepts and techniques you need to master. Initially, we will cover foundational statistical ideas. Subsequently, we explore core algorithms and the mathematics powering them. Finally, we touch upon practical data handling steps, creating a comprehensive learning list. Therefore, follow along this machine learning guide to build a solid foundation.</p><h3>Foundational Concepts: Building Blocks for This ML Tutorial</h3><p>Before diving into complex algorithms, you must first grasp some fundamental concepts. Subsequently, these ideas form the bedrock upon which machine learning models are built. Moreover, mastering these basics makes learning advanced topics significantly easier. Therefore, let’s begin this section of our List Machine Learning Tutorial with the essentials.</p><h3>Understanding Probability Basics: The Language of Uncertainty</h3><p>First, you need to understand probability basics. Essentially, probability helps us quantify uncertainty, a core aspect of data and predictions. Next, you learn how probability theory allows us to model random events and make inferences from data. For instance, you might calculate the likelihood of a specific outcome in an experiment. Additionally, grasping concepts like conditional probability and Bayes’ theorem is crucial for many ML algorithms. Consequently, you should explore probability basics thoroughly using practical examples, perhaps even implementing some calculations in Python as shown in foundational data science guides. Ultimately, a strong grasp of probability empowers you to better interpret model outputs and uncertainty estimates in this machine learning guide. You can delve deeper into this topic by exploring resources like the <a href="https://teguhteja.id/probability-basics-essential-guide-to-data-science-foundations/">Probability Basics: Essential Guide to Data Science Foundations</a>.</p><h3>Grasping Descriptive Statistics: Summarizing Your Data</h3><p>Following probability, you must learn descriptive statistics. Specifically, descriptive statistics involve methods for summarizing and organizing data effectively. Then, you can calculate measures like mean, median, mode, variance, and standard deviation to understand data distributions. Furthermore, these statistics provide a quick overview of your dataset’s main characteristics. For example, you might use the mean to find the average value of a feature or the standard deviation to understand its spread. Subsequently, visualizing data using histograms or box plots also falls under descriptive statistics, offering visual insights. Therefore, mastering these techniques allows you to perform initial data exploration, a critical first step in any machine learning project detailed in this tutorial list. Check out comprehensive guides like <a href="https://teguhteja.id/descriptive-statistics-mastery-learn-data-analysis-success/">Statistics Mastery: Learn Descriptive Statistics for Data Analysis Success</a> for more details.</p><h3>Exploring Probability Distributions: Modeling Data Patterns</h3><p>Next in our machine learning tutorial list, you should explore probability distributions. Importantly, probability distributions describe how values are distributed for a variable. For example, the normal distribution (bell curve) is common, but many others like binomial or Poisson distributions exist for different data types. Additionally, understanding these distributions helps you model real-world phenomena and select appropriate statistical tests or ML models. Subsequently, you can use Python libraries to work with and visualize these distributions, gaining practical experience. Consequently, knowing which distribution fits your data can significantly improve model accuracy and interpretation. Therefore, dedicate time to learning about common distributions and their applications as outlined in resources like <a href="https://teguhteja.id/probability-distributions-complete-guide-statistical-analysis/">Probability Distributions Statistical: A Complete Guide to Analysis</a>.</p><h3>Hypothesis Testing Explained: Making Data-Driven Decisions</h3><p>Furthermore, hypothesis testing is a vital skill covered in this ML tutorial. Essentially, hypothesis testing provides a formal framework for making decisions based on data. First, you formulate a null hypothesis (a default assumption) and an alternative hypothesis. Then, you collect data and use statistical tests (like t-tests or chi-squared tests) to determine if there’s enough evidence to reject the null hypothesis. Moreover, this process helps you validate assumptions and draw statistically significant conclusions. For instance, you might test if a new website design leads to a higher conversion rate. Therefore, understanding hypothesis testing allows you to rigorously evaluate model performance or compare different approaches. You can find practical guidance in resources such as <a href="https://teguhteja.id/hypothesis-testing-practical-guide/">Hypothesis Testing: A Practical Guide to Data-Driven Decisions</a>.</p><h3>Core Machine Learning Algorithms Tutorial</h3><p>Now that you have the foundations, this List Machine Learning Tutorial moves to core algorithms. Subsequently, these algorithms are the workhorses used to build predictive models from data. Moreover, understanding how they work internally is key to applying them effectively.</p><h3>Linear Regression: Predicting Continuous Outcomes</h3><p>First among the core algorithms, we examine linear regression. Fundamentally, linear regression models the relationship between a dependent variable and one or more independent variables by fitting a linear equation to the observed data. Next, you learn how to find the best-fitting line, typically using methods like least squares. Furthermore, linear regression is widely used for prediction tasks where the outcome is a continuous value, such as predicting house prices or sales figures. Consequently, it serves as an excellent starting point for understanding supervised learning. Therefore, mastering linear regression provides a solid base before moving to more complex models. Explore simple prediction techniques further with guides like <a href="https://teguhteja.id/linear-regression-simplifying-predictions/">Linear Regression: Simplifying Predictions with Data</a>.</p><h3>Clustering Techniques: Finding Groups in Unlabeled Data</h3><p>Next in this machine learning algorithms tutorial, we explore clustering. Specifically, clustering is an unsupervised learning technique used to group similar data points together without prior labels. Then, you learn about popular algorithms like K-means, Hierarchical clustering, and DBSCAN, each with its own approach to forming clusters. Additionally, clustering helps discover hidden patterns and structures in data, useful for tasks like customer segmentation or anomaly detection. For example, you might group customers based on their purchasing behavior. Subsequently, evaluating the quality of clusters using metrics like silhouette scores becomes important. Therefore, understanding clustering techniques adds a powerful tool for exploratory data analysis to your skillset. You can find essential guidance in resources like <a href="https://teguhteja.id/clustering-machine-learning-essential-guide-mastering-techniques/">Essential Guide: Mastering Clustering Techniques in Machine Learning</a>.</p><h3>Optimization Techniques in Machine Learning Tutorial</h3><p>Machine learning models learn by minimizing errors, a process driven by optimization techniques. Consequently, this part of the List Machine Learning Tutorial focuses on how models find the best parameters. Furthermore, understanding optimization is crucial for training efficient and effective models.</p><h3>Gradient Descent: The Core Optimizer for ML Models</h3><p>First and foremost in optimization, you must understand gradient descent. Essentially, gradient descent is an iterative optimization algorithm used to find the minimum of a function (typically a loss function in ML). Next, it works by taking steps proportional to the negative of the gradient (or approximate gradient) of the function at the current point. Furthermore, variations like Stochastic Gradient Descent (SGD) and Mini-batch Gradient Descent are commonly used for large datasets. Consequently, gradient descent forms the backbone of training for many machine learning models, especially neural networks. Therefore, a deep understanding of its mechanics is essential for any ML practitioner. Start with a comprehensive <a href="https://teguhteja.id/gradient-descent-tutorial-machine-learning-optimization/">Gradient Descent Tutorial: Master Machine Learning Optimization Basics</a>.</p><h3>Advanced Optimization: Improving Learning Efficiency</h3><p>Beyond basic gradient descent, this machine learning optimization tutorial touches upon advanced methods. Subsequently, techniques like adaptive learning rates (e.g., Adam, RMSprop) automatically adjust the step size during training, often leading to faster convergence. Additionally, methods involving second derivatives, like Newton’s method, can sometimes offer faster convergence but might be computationally more expensive. For instance, understanding the second derivative helps analyze the curvature of the loss function. Therefore, exploring these advanced optimization techniques can significantly improve model training performance and stability. You can investigate these further through resources covering <a href="https://teguhteja.id/adaptive-learning-rate-methods-revolutionizing-neural-network-optimization/">Adaptive Learning Rates</a>, <a href="https://teguhteja.id/second-derivative-python-a-key-tool-in-machine-learning-optimization/">Second Derivative Python</a>, and <a href="https://teguhteja.id/newton-method-optimization-python-guide/">Newton’s Method</a>.</p><h3>Essential Mathematics for Machine Learning Guide</h3><p>Underpinning all machine learning algorithms is mathematics. Therefore, this section of the List Machine Learning Tutorial highlights the key mathematical concepts you’ll encounter frequently. Moreover, a solid mathematical foundation aids in understanding <em>why</em> algorithms work.</p><h3>Derivatives: Understanding Rates of Change in ML</h3><p>First, understanding derivatives from calculus is crucial. Essentially, derivatives measure the rate at which a function’s output changes with respect to its input. Next, in machine learning, derivatives (specifically gradients, which are derivatives for multivariable functions) are fundamental to optimization algorithms like gradient descent, as they indicate the direction of steepest ascent or descent of the loss function. Furthermore, understanding concepts like partial derivatives is necessary when dealing with functions of multiple variables, common in ML models. Consequently, grasping how to calculate and interpret derivatives allows you to understand model training dynamics better. Therefore, review resources on <a href="https://teguhteja.id/derivative-functions-essential-guide-understanding-calculus-machine-learning/">Functions Derivative Machine Learning</a>, <a href="https://teguhteja.id/multivariable-derivatives-essential-math-concepts-for-machine-learning/">Multivariable Derivatives</a>, and basic <a href="https://teguhteja.id/derivatives-understanding-basic-calculations-python/">Python Derivatives</a>.</p><h3>Vectors and Matrices: The Language of Data Representation</h3><p>Additionally, linear algebra, particularly vectors and matrices, provides the language for representing and manipulating data in machine learning. Initially, you represent datasets and model parameters using these structures. Subsequently, operations like vector addition, scalar multiplication, dot products, and matrix multiplication are used extensively in algorithm implementations. For example, neural network computations heavily rely on matrix operations. Furthermore, concepts like determinants and linear dependency are important for understanding properties of data and transformations. Therefore, proficiency in vector and matrix operations using libraries like NumPy is essential for practical implementation. Explore guides on <a href="https://teguhteja.id/mathematical-vectors-essential-building-blocks-deep-learning/">Mathematical Vectors</a>, <a href="https://teguhteja.id/vector-operations-python-complete-guide-beginners/">Vector Operations Python</a>, <a href="https://teguhteja.id/matrix-operations-guide-master-linear-algebra-with-python-numpy/">Numpy Matrix Calculation</a>, and <a href="https://teguhteja.id/determinants-linear-dependency-math-machine-learning/">Determinants Linear Dependency</a>.</p><h3>Practical Steps: Data Handling Tutorial within ML</h3><p>Finally, this List Machine Learning Tutorial wouldn’t be complete without mentioning practical data handling. Ultimately, real-world data is often messy and requires preparation before feeding it into models. Moreover, efficient data manipulation is key to effective analysis.</p><h3>Data Cleaning: Preparing Your Raw Data</h3><p>First, you almost always need to perform data cleaning. Specifically, this involves handling missing values, correcting errors, removing duplicates, and transforming data into a suitable format. Next, techniques like imputation (filling missing values) or outlier detection become necessary. Furthermore, using libraries like Pandas in Python makes these tasks manageable. For instance, you might clean a dataset like the FIFA 21 player data before analysis. Consequently, proper data cleaning ensures the quality of your input data, which directly impacts model performance. Therefore, mastering data cleaning techniques is a non-negotiable skill for any data scientist or ML engineer. See practical examples in guides like <a href="https://teguhteja.id/python-data-cleaning-mastering-techniques-with-fifa-21-dataset/">Mastering Data Cleaning with Python: A Deep Dive into FIFA 21 Dataset</a>.</p><h3>Data Analysis and Manipulation: Using Pandas &amp; NumPy</h3><p>Alongside cleaning, you need skills in general data analysis and manipulation. Subsequently, libraries like NumPy and Pandas are indispensable tools in the Python ecosystem for these tasks. Initially, NumPy provides efficient numerical operations, especially on arrays (vectors and matrices). Then, Pandas offers powerful data structures like DataFrames and Series, along with functions for loading, viewing, filtering, merging, indexing, and reshaping data. Furthermore, you’ll constantly use these libraries to explore datasets, engineer features, and prepare data for modeling. Therefore, becoming proficient with NumPy and Pandas is fundamental to applying machine learning effectively in practice. Refer back to the numerous guides on <a href="https://teguhteja.id/pandas-data-analysis-essential-techniques-for-beginners/">Pandas Data Analysis</a>, <a href="https://teguhteja.id/numpy-array-creation-guide-master-pythons-powerful-data-structure/">NumPy Array Creation</a>, <a href="https://teguhteja.id/pandas-filtering-data-techniques/">Pandas Filtering</a>, <a href="https://teguhteja.id/pandas-indexing-selection-guide/">Pandas Indexing</a>, and <a href="https://teguhteja.id/data-merging-techniques-master-pandas-dataframe-combinations/">Data Merging</a> for detailed techniques.</p><h3>Conclusion: Continuing Your ML Tutorial Path</h3><p>In conclusion, this <strong>List Machine Learning Tutorial</strong> has provided a structured overview of essential concepts and techniques. Initially, we covered foundational statistics and probability. Subsequently, we explored core algorithms like linear regression and clustering. Furthermore, we delved into crucial optimization methods and the underlying mathematics. Finally, we touched upon the practical necessity of data cleaning and manipulation using tools like Pandas and NumPy. Remember, machine learning is a vast field; consequently, continuous learning is key. Therefore, use this list as a starting point and continue exploring each topic in greater depth using the provided links and other quality resources. Ultimately, consistent practice and application will solidify your understanding and skills on your machine learning journey. List Machine Learning Tutorial</p><h3>Data Merging Guide: Master Pandas DataFrame Combinations (2025–01–31)</h3><p>Enhance your data analysis skills with our guide to data merging techniques. Learn how to effectively combine datasets using pandas, handle merge conflicts, and implement best practices for DataFrame operations in Python.</p><h3>Data Cleaning Techniques: Transform Your Pandas DataFrame Like a Pro (2025–01–31)</h3><p>Discover professional data cleaning techniques in this comprehensive guide. Learn how to transform raw data into clean, analysis-ready datasets using pandas and Python. Perfect for data analysts and scientists seeking robust preprocessing methods.</p><h3>Pandas DataFrame Mastery: Essential Guide to Creating Dynamic Columns (2025–01–31)</h3><p>Enhance your data analysis skills with our comprehensive guide to Pandas DataFrame columns. Learn essential techniques for creating and manipulating columns, with practical Python examples and best practices.</p><h3>Enhancing Data Analysis with Pandas: Creating New Columns (2025–01–30)</h3><p>Unlock the power of your data with our Pandas New Columns guide! Discover techniques to add and manipulate DataFrame columns for better analysis. #DataScience #Pandas</p><h3>Handling Missing Values with Pandas: A Practical Guide (2025–01–30)</h3><p>Explore our latest guide on Handling Missing Values with Pandas! Master data cleaning techniques to boost your data analysis. #DataScience #Pandas</p><h3>Conditional Selection Pandas: Master Data Filtering Like a Pro (2025–01–29)</h3><p>Learn how to use conditional selection in pandas to filter and analyze your data effectively. Includes practical examples, best practices, and advanced techniques for data manipulation.</p><h3>Pandas Power: Essential Data Analysis Techniques for Beginners (2025–01–29)</h3><p>Master pandas data analysis with our comprehensive guide. Learn practical techniques for data manipulation, analysis, and visualization using Python’s most powerful library. Perfect for beginners and intermediate users.</p><h3>Pandas Filtering: Mastering Effective Data Techniques (2025–01–28)</h3><p>Discover the power of #PandasFiltering with our latest guide! Learn to sift through data efficiently and focus on what matters most. Dive into our expert tips now!</p><h3>Pandas Indexing: Mastering Selecting Data (2025–01–28)</h3><p>Unlock the secrets of #PandasIndexing with our latest blog! Learn how to expertly navigate and select data in DataFrames. Perfect for data enthusiasts looking to enhance their skills. Dive in now!</p><h3>Pandas Statistics: Mastering Calculating Quantities (2025–01–28)</h3><p>Dive into our latest blog on #StatisticalAnalysis using #Pandas! Learn to calculate essential statistics for better data insights. Perfect for analysts and data scientists. Explore now!</p><h3>Mastering Pandas: Loading and Viewing Data (2025–01–28)</h3><p>Explore our latest blog on #PandasDataFrames! Discover essential tips on loading and viewing data effectively. Perfect for data enthusiasts and beginners alike. Read more now!</p><h3>Mastering Basic Statistical Operations with NumPy (2025–01–27)</h3><p>Discover how to master Statistical Operations in NumPy for effective data interpretation and analysis. Dive into our comprehensive guide today! #DataScience #NumPy</p><h3>Mastering NumPy: Boolean and Fancy Indexing Techniques (2025–01–27)</h3><h3>Numpy Reshape and Array Shape : A Beginner’s Guide (2025–01–27)</h3><p>Explore the essentials of Array Shape and Reshape with our latest guide on NumPy. Master data manipulation techniques to enhance your projects! #DataScience #NumPy</p><h3>NumPy Array Indexing: Master Data Access and Manipulation (2025–01–26)</h3><p>Comprehensive guide to NumPy array indexing and slicing. Master fundamental techniques for accessing and manipulating array data in Python. Learn essential methods for efficient data processing in scientific computing.</p><h3>NumPy Array Operations: Master Essential Mathematical Computations (2025–01–26)</h3><p>Comprehensive guide to NumPy array operations in Python. Master element-wise calculations, matrix operations, and statistical functions. Learn practical techniques for efficient data processing and scientific computing.</p><h3>NumPy Array Creation Guide: Master Python’s Powerful Data Structure (2025–01–26)</h3><p>Master NumPy array creation techniques and boost your Python programming skills. Learn how to create, manipulate, and optimize arrays for data analysis and scientific computing. Includes practical code examples.</p><h3>Linear Regression: Simplifying Predictions with Data (2025–01–25)</h3><p>Unlock the secrets of Linear Regression to boost your predictive analytics skills. Dive into our latest blog for actionable insights. #DataScience</p><h3>Hypothesis Testing: A Practical Guide to Data-Driven Decisions (2025–01–24)</h3><p>Explore the essentials of Hypothesis Testing with our latest blog post. Understand how to apply statistical analysis to real-world data. #DataScience</p><h3>Probability Distributions Statistical: A Complete Guide to Analysis (2025–01–23)</h3><p>Enhance your statistical analysis skills with our complete guide to probability distributions. From fundamentals to advanced concepts, learn how to implement and interpret different distributions using Python.</p><h3>Statistics Mastery: Learn Descriptive Statistics for Data Analysis Success (2025–01–22)</h3><p>Enhance your data analysis skills with our complete guide to descriptive statistics. Learn fundamental concepts, practical applications, and Python implementation for statistical analysis.</p><h3>Probability Basics: Essential Guide to Data Science Foundations (2025–01–21)</h3><p>Explore probability basics through practical examples and Python implementations. From fundamental concepts to advanced applications, learn how probability theory powers modern data science and analytics.</p><h3>Adaptive Learning Rates: Revolutionizing Neural Network Optimization (2025–01–20)</h3><p>Master adaptive learning rate methods for neural network optimization. Dive into implementation details, practical benefits, and future trends in this comprehensive guide to modern deep learning techniques.</p><h3>Gradient Descent Tutorial: Master Machine Learning Optimization Basics (2025–01–19)</h3><p>Comprehensive gradient descent tutorial for machine learning practitioners. Learn optimization techniques, Python implementation, and best practices. Ideal for data scientists and ML engineers.</p><h3>LazyVim Installation Guide for Efficient Neovim Setup (2025–01–18)</h3><p>LazyVim Installation: Discover how to transform Neovim into a powerful IDE with LazyVim. Our guide covers installation, configuration, and essential keyboard shortcuts to enhance your coding productivity. #LazyVim #Neovim #CodingEfficiency #DeveloperTools</p><h3>Second Derivative Python: A Key Tool in Machine Learning Optimization (2025–01–18)</h3><p>Explore the power of the Second Derivative in our latest post! Learn how it transforms machine learning optimization for better model performance. #MachineLearning #Python #Calculus</p><h3>Newton’s Method: Master Mathematical Optimization in Python (2025–01–17)</h3><h3>Gradient Optimization: Essential Techniques for ML (2025–01–16)</h3><p>Deep dive into gradient optimization for machine learning. Learn implementation techniques, best practices, and advanced concepts for neural network training. Essential reading for ML professionals and researchers.</p><h3>Mastering FIFA 21 Dataset Analysis: A Comprehensive Guide (2025–01–15)</h3><p>Dive into our latest blog on FIFA 21 Data Analysis! Learn how to use sports data science to spot top players. #DataScience #FIFA21 #SportsAnalytics</p><h3>Mastering Data Cleaning with Python: A Deep Dive into FIFA 21 Dataset (2025–01–15)</h3><p>Explore our latest blog post on Python Data Cleaning! Master the art of tidying up the FIFA 21 dataset for better data analysis. #DataScience #Python #FIFA21</p><h3>Essential Guide: Mastering Clustering Techniques in Machine Learning (2025–01–15)</h3><p>Enhance your machine learning skills with our comprehensive clustering guide. Learn implementation techniques, validation metrics, and best practices for K-means, Hierarchical, and DBSCAN algorithms.</p><h3>Multivariable Derivatives: Essential Math Concepts for ML (2025–01–15)</h3><p>Deep dive into multivariable derivatives and their applications in machine learning. Learn how to implement partial derivatives in Python and optimize your ML models. Essential reading for data scientists and ML engineers.</p><h3>Multivariable Functions Python: Essential Guide for ML (2025–01–14)</h3><p>Deep dive into multivariable functions with Python. Learn implementation techniques, visualization methods, and real-world applications in machine learning. Includes practical code examples.</p><h3>Functions Derivative Machine Learning: Guide to Understanding Calculus (2025–01–13)</h3><p>Deep dive into derivative functions and their applications in machine learning. Understand how calculus derivatives enable AI optimization, with practical Python implementations. Essential reading for ML engineers and data scientists.</p><h3>Manual Payment Processing: Master Odoo’s Invoice Payment Matching System (2025–01–12)</h3><p>Discover the step-by-step process of handling manual invoice payments in Odoo Accounting. Learn essential skills for managing mass payments, payment registration, and invoice matching for improved financial operations.</p><h3>Upscaling Images with Python and ESRGAN: A Practical Guide (2025–01–12)</h3><p>Master image upscaling in Python using ESRGAN! This technical guide walks you through implementing super-resolution techniques to transform low-quality images into sharp, detailed photos. Perfect for developers and data scientists.</p><h3>Python Derivatives: A Practical Approach (2025–01–12)</h3><p>Explore the world of derivatives with our latest blog post! Learn how to effectively calculate and apply them in machine learning optimization using Python. #MachineLearning #PythonCoding</p><h3>Mathematical Limits: A Practical Guide to Calculus Fundamentals (2025–01–11)</h3><p>Explore mathematical limits in calculus through practical examples and Python code. Learn how to apply these fundamental concepts in machine learning, data analysis, and engineering applications.</p><h3>Functions in math: A Comprehensive Guide and Understanding (2025–01–10)</h3><p>Explore the world of functions in math! Discover how they shape technology and learn to apply them in Python. #MathInTech #PythonFunctions</p><h3>Determinants Linear Dependency: Essential Math for Machine Learning (2025–01–09)</h3><p>Explore how determinants and linear dependency form the backbone of machine learning algorithms. Perfect for data scientists and ML engineers looking to strengthen their mathematical foundation.</p><h3>Numpy Matrix Calculation : Understanding Operations with Python (2025–01–08)</h3><p>Dive into matrix operations and linear algebra using Python &amp; NumPy! This comprehensive guide covers fundamental concepts, practical implementations, and real-world applications. Perfect for data scientists and ML engineers. #Python #DataScience #LinearAl</p><h3>Vector Operations Python: Basic Mathematical inConcepts (2025–01–07)</h3><p>Explore vector operations in Python with this comprehensive guide. Learn vector addition, scalar multiplication, and practical implementations using NumPy. Ideal for developers and data scientists.</p><h3>Mathematical Vectors: Essential Building Blocks for Deep Learning Models (2025–01–06)</h3><p>Mathematical vectors: the building blocks of AI systems. Learn essential vector and matrix operations that power neural networks. Perfect for ML engineers and data scientists exploring deep learning fundamentals.</p><h3>Data Analysis Mastery: Essential Guide to NumPy and Pandas in Python (2025–01–05)</h3><p>Master the fundamentals of data analysis with Python’s NumPy and Pandas libraries. Learn essential techniques for numerical computing, data manipulation, and statistical analysis. Enhance your data science skills with this comprehensive guide.</p><h3>Go Polymorphism Implementation: A Practical Guide to Interface (2025–01–05)</h3><p>Discover how Go polymorphism transforms code flexibility through interfaces. This practical guide covers implementation patterns, real-world examples, and best practices for building robust Go applications.</p><h3>Go Composition patterns: A Practical to Building Software (2025–01–04)</h3><p>Learn how to leverage Go composition patterns for better software design. This comprehensive guide covers struct embedding, practical implementations, and best practices with real-world examples for building maintainable applications.</p><h3>Go Interface Programming: Essential Guide for Modern Software Design (2025–01–03)</h3><p>Master Go interface programming with our comprehensive guide. Learn essential concepts, implementation techniques, and best practices for creating flexible, maintainable software. Includes practical examples and real-world applications.</p><h3>Go Methods Programming: Transform Your Code with Custom Type Functions (2025–01–02)</h3><p>Explore Go methods programming and learn how to extend data types with custom functionality. Perfect for developers looking to write more efficient and maintainable Go code.</p><h3>Tutorial Structs in Go: A Comprehensive Guide (2025–01–01)</h3><p>Discover the power of structs in Go! Master how to define, create, and utilize structs to streamline your code. #GoLang #Programming #Structs</p><p><em>Originally published at </em><a href="https://teguhteja.id/machine-learning-tutorial-list-essential-guide/"><em>https://teguhteja.id</em></a><em> on May 12, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c3fe9181c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OWL in Odoo 17: Adding Custom Buttons to Sales Order List View]]></title>
            <link>https://medium.com/@teguhteja/owl-in-odoo-17-adding-custom-buttons-to-sales-order-list-view-8268b516615b?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8268b516615b</guid>
            <category><![CDATA[owls]]></category>
            <category><![CDATA[owl17]]></category>
            <category><![CDATA[odoo-17]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 10:51:22 GMT</pubDate>
            <atom:updated>2025-05-12T10:51:22.418Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="OWL in Odoo 17: Adding Custom Buttons to Sales Order List View" src="https://cdn-images-1.medium.com/max/1024/0*0dIdorjOAAg7xOo7.jpeg" /></figure><p>OWL Odoo 17 custom button. Are you ready to enhance your Odoo 17 experience with custom buttons? This tutorial will guide you through the process of adding a new button to the sales order list view using <a href="https://teguhteja.id/owl-framework/">OWL</a> (Odoo Web Library) in Odoo 17. We’ll explore XML inheritance, JavaScript controllers, and Odoo development techniques to create a seamless user interface.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmcDKP-4-4-E%3Fstart%3D17%26feature%3Doembed%26start%3D17&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmcDKP-4-4-E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmcDKP-4-4-E%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa327a0b9c7e656bfa5ddc1245ed25a1/href">https://medium.com/media/fa327a0b9c7e656bfa5ddc1245ed25a1/href</a></iframe><h4>Setting Up Your Odoo Add-on</h4><p>First, let’s create a new add-on using the Odoo scaffold command:</p><p>odoo scaffold add_new_button .</p><p>After generating the add-on, remove unnecessary folders such as models, controllers, and security. Then, create a static folder to house our JavaScript and XML files.</p><h4>Implementing the Custom Button</h4><p>JavaScript Controller</p><p>Create a file named list_controller.js in the static/src/js directory with the following code:</p><p>/** @odoo-module */<br>import { ListController } from “@web/views/list/list_controller”;<br>import { registry } from ‘@web/core/registry’;<br>import { listView } from ‘@web/views/list/list_view’;<br>export class OdooOWLListController extends ListController {<br> setup() {<br> super.setup();<br> }<br> showCustomers() {<br> this.actionService.doAction({<br> type: ‘ir.actions.act_window’,<br> res_model: ‘res.partner’,<br> name:’Customers’,<br> view_mode: ‘tree,form’,<br> view_type: ‘form’,<br> views: , ],<br> target: ‘current’,<br> res_id: false,<br> });<br> }<br>}<br>const viewRegistry = registry.category(“views”);<br>export const OWLListController = {<br> …listView,<br> Controller: OdooOWLListController,<br>};<br>viewRegistry.add(“owl_list_controller”, OWLListController);</p><p>This JavaScript code extends the ListController and adds a new showCustomers method to handle the button click event.</p><p>XML Template</p><p>Create a file named list_controller.xml in the static/src/xml directory:</p><p>Customers</p><p>This XML template adds the custom button to the sales order list view.</p><h4>Integrating the Custom Button</h4><p>To integrate the custom button, create a sale.xml file in the views directory:</p><p>sale.order.inherit<br> sale.order<br> owl_list_controller</p><p>This XML file inherits the existing sale order tree view and applies our custom JavaScript class.</p><h4>Finalizing the Add-on</h4><p>Update the __manifest__.py file with the following content:</p><p>{<br> ‘name’: “Add New Button”,<br> ‘summary’: “Adds a new button to the user interface.”,<br> ‘description’: “””<br>This feature introduces a new button to the user interface, <br>allowing users to perform a specific action. <br>The button is designed to be easily accessible and intuitive, <br>enhancing the overall user experience by providing a straightforward way to initiate the desired operation<br> “””,<br> ‘author’: “Adil Akbar”,<br> ‘website’: “https://www.youtube.com/watch?v=mcDKP-4-4-E&quot;,<br> ‘category’: ‘Sales’,<br> ‘version’: ‘0.1’,<br> ‘depends’: ,<br> ‘data’: ,<br> ‘assets’: {<br> ‘web.assets_backend’: ,<br> },<br> ‘installable’: True,<br> ‘auto_install’: False,<br> ‘application’: True,<br>}</p><p>This manifest file defines the add-on’s properties and dependencies.</p><h4>Conclusion</h4><p>By following this tutorial, you’ve successfully added a custom “Customers” button to the sales order list view in Odoo 17 using OWL. This enhancement improves user experience by providing quick access to customer information directly from the sales order list.</p><p>For more information on Odoo development and OWL, check out the <a href="https://github.com/aadilakbar/demo-addons-yt/tree/main/odoo_owl_list">source code </a>from Adil Akbar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8268b516615b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Odoo 18 OWL JS Tutorial]]></title>
            <link>https://medium.com/@teguhteja/odoo-18-owl-js-tutorial-ff09272f9f28?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff09272f9f28</guid>
            <category><![CDATA[owls]]></category>
            <category><![CDATA[odoo18]]></category>
            <category><![CDATA[owl2]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 10:50:03 GMT</pubDate>
            <atom:updated>2025-05-12T10:50:03.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Odoo 18 OWL JS Tutorial" src="https://cdn-images-1.medium.com/max/1024/0*T57azLMk-PzNC9QU.jpeg" /></figure><h3>Master New OWL 2 Features</h3><h4>Introduction</h4><p><a href="https://teguhteja.id/category/odoo/owl/">First</a>, Odoo 18 OWL JS delivers a powerful reactive framework for building dynamic UIs. Furthermore, it streamlines your JavaScript development by cutting boilerplate code significantly. Next, this tutorial will guide you step-by-step through each new feature so you can upgrade your Odoo widgets confidently. Finally, you will see clear code examples and explanations that help you adopt OWL 2 quickly.</p><p>source : <a href="https://www.pysquad.com/blogs/odoo-18-owl-js-key-improvements-over-odoo-17?utm_source=pocket_saves">https://www.pysquad.com/blogs/odoo-18-owl-js-key-improvements-over-odoo-17?utm_source=pocket_saves</a></p><h4>Why Upgrade to Odoo 18 OWL JS</h4><p>First, Odoo 18 OWL JS enhances performance with automatic updates that reflect state changes instantly. Next, it provides new lifecycle hooks that let you run code at precise moments in a component’s life. Moreover, built-in props validation catches errors early and reduces runtime bugs. Consequently, you will write cleaner code with fewer headaches. Finally, dynamic components and slots give you flexible UI patterns that scale as your application grows.</p><h4>Prerequisites</h4><p>First, ensure that you run <strong>Odoo 18</strong> on your development machine. Next, install Node.js v16+ and Yarn (or npm), because OWL 2 uses modern ES6+ features. Moreover, you will need a working Python environment for Odoo server development. Consequently, you should clone an existing custom module or create a fresh one by running:</p><p># create a new module scaffold <br>$ odoo scaffold owl_tutorial addons/</p><p>Finally, you will add OWL components under your module’s static/src folder.</p><h4>Setting Up Your Odoo 18 OWL JS Environment</h4><p>First, navigate to your module directory and install JavaScript dependencies:</p><p>$ cd addons/owl_tutorial/static/src <br>$ yarn init -y # or npm init -y <br>$ yarn add owl @odoo/owl axios # or npm install owl @odoo/owl axios</p><p>Next, configure your build pipeline by creating a webpack.config.js file:</p><p>// webpack.config.js <br>const odoo = require(‘@odoo/webpack-module’); <br>module.exports = odoo({ <br> input: ‘./src/index.js’, <br> output: { filename: ‘bundle.js’ }, <br>});</p><p>Furthermore, link the bundle in your module’s manifest (__manifest__.py):</p><p>‘assets’: { <br> ‘web.assets_backend’: , <br>},</p><p>Finally, restart your Odoo server and refresh your app to load the new OWL 2 bundle.</p><h4>Key OWL 2 Improvements in Odoo 18 OWL JS</h4><p>Below, you will find detailed examples and explanations for each major enhancement.</p><p>1. Reactive State Management<br>Code Example<br>// counter.js <br>import { Component, reactive, tags, mount } from “@odoo/owl”; <br>class Counter extends Component { <br> setup() { <br> this.state = reactive({ count: 0 }); <br> } <br> increment() { <br> this.state.count++; <br> } <br>} <br>Counter.template = tags.xml/* xml */`<br> Increment <br> Count: <br> `; <br>mount(Counter, { target: document.body });<br>Explanation</p><p>First, you define a reactive object with reactive({ count: 0 }). Next, when you call this.state.count++, OWL 2 updates the DOM automatically. Moreover, you avoid manual this.render() calls and keep your code concise. Consequently, state changes flow ahead without extra work.</p><p>2. New Lifecycle Hooks<br>Code Example<br>// logger.js <br>import { Component, onMounted, onWillStart, onWillUnmount, tags, mount } from “@odoo/owl”; <br>class Logger extends Component { <br> setup() { <br> onWillStart(() =&gt; console.log(“Will start”)); <br> onMounted(() =&gt; console.log(“Mounted”)); <br> onWillUnmount(() =&gt; console.log(“Will unmount”)); <br> } <br>} <br>Logger.template = tags.xml`Check console logs`; <br>const app = mount(Logger, { target: document.body }); <br>setTimeout(() =&gt; app.destroy(), 5000);<br>Explanation</p><p>First, onWillStart runs before initial rendering. Next, onMounted fires after the component appears in the DOM. Moreover, onWillUnmount triggers before cleanup. Consequently, you gain precise control over setup and teardown logic.</p><p>3. Reactive Arrays and Objects<br>Code Example<br>// todo.js <br>import { Component, reactive, tags, mount } from “@odoo/owl”; <br>class Todo extends Component { <br> setup() { <br> this.state = reactive({ items: }); <br> } <br> addItem() { <br> this.state.items.push(`Task ${this.state.items.length + 1}`); <br> } <br>} <br>Todo.template = tags.xml`<br> Add Task<br> -<br> `; <br>mount(Todo, { target: document.body });<br>Explanation</p><p>First, wrapping items in reactive lets OWL detect array mutations. Next, calling .push() re-renders the list automatically. Moreover, you avoid replacing entire arrays and keep your code efficient.</p><p>4. Improved Template Handling<br>Code Example</p><p>No message available</p><p>Explanation</p><p>First, OWL 2 compiles templates faster with an improved parser. Next, the t-if and t-else directives execute reliably. Moreover, you write cleaner XML without extra wrappers.</p><p>5. Props Validation<br>Code Example<br>// greeting.js <br>import { Component, tags, mount } from “@odoo/owl”; <br>class Greeting extends Component {} <br>Greeting.props = { <br> name: { type: String, required: true }, <br> age: { type: Number, default: 0 }, <br>}; <br>Greeting.template = tags.xml` <br> Hello, ! You are .`; <br>mount(Greeting, { target: document.body, props: { name: “Sam”, age: 28 } });<br>Explanation</p><p>First, OWL throws an error if you omit name or pass a wrong type. Next, default values apply when you skip optional props. Moreover, prop validation reduces runtime bugs significantly.</p><p>6. Enhanced Component Slots<br>Code Example<br>// card.js <br>import { Component, tags, mount } from “@odoo/owl”; <br>class Card extends Component {} <br>Card.template = tags.xml`<br> `; <br>class Demo extends Component {} <br>Demo.components = { Card }; <br>Demo.template = tags.xml`<br> Report</p><p>Main content here</p><p>© 2025 <br> `; <br>mount(Demo, { target: document.body });<br>Explanation</p><p>First, you define multiple slots by name. Next, you pass header and footer content dynamically. Moreover, default slot handles main content. Consequently, you build flexible layouts with minimal code.</p><p>7. Cleaner Event Binding<br>Code Example<br> Click Me<br>Explanation</p><p>First, OWL replaces verbose syntax with t-on-click. Next, you attach handlers inline or via methods. Moreover, you avoid confusion with v-on: or other frameworks’ syntax.</p><p>8. Dynamic Component Support<br>Code Example<br>// dynamic.js <br>import { Component, reactive, mount } from “@odoo/owl”; <br>class Greeting extends Component { /* … */ } <br>class Farewell extends Component { /* … */ } <br>const components = { Greeting, Farewell }; <br>class DynamicDemo extends Component { <br> setup() { <br> this.state = reactive({ currentComponent: “Greeting” }); <br> } <br> toggle() { <br> this.state.currentComponent = this.state.currentComponent === “Greeting” ? “Farewell” : “Greeting”; <br> } <br>} <br>DynamicDemo.components = components; <br>DynamicDemo.template = tags.xml`<br> Toggle<br> `; <br>mount(DynamicDemo, { target: document.body });<br>Explanation</p><p>First, you store component names in state. Next, renders the matching class. Moreover, you switch dynamically without rebuilding the whole app.</p><p>9. Improved Modern JavaScript Support<br>Code Example<br>// datafetch.js <br>import { Component, tags, mount } from “@odoo/owl”; <br>import axios from “axios”; <br>class DataFetch extends Component { <br> async setup() { <br> const { data } = await axios.get(“/api/items”); <br> this.state = { items: data.items }; <br> } <br>} <br>DataFetch.template = tags.xml`<br> — <br> `; <br>mount(DataFetch, { target: document.body });<br>Explanation</p><p>First, you use async/await for clarity. Next, destructuring pulls data.items easily. Moreover, ES modules keep your code modular and maintainable.</p><p>10. New API for Component Rendering<br>Code Example<br>// main.js <br>import { mount } from “@odoo/owl”; <br>import App from “./app.js”; <br>const app = mount(App, { <br> target: document.getElementById(“app”), <br> props: { user: “Admin” }, <br>});<br>Explanation</p><p>First, you call mount() once to bootstrap your app. Next, OWL handles rendering and updates internally. Moreover, you avoid manual attachment logic and focus on component design.</p><p>11. Simplified Component Unmounting<br>Code Example<br>// teardown.js <br>import { mount } from “@odoo/owl”; <br>import App from “./app.js”; <br>const app = mount(App, { target: “#app” }); <br>// … later <br>app.destroy();<br>Explanation</p><p>First, destroy() removes event listeners and DOM nodes cleanly. Next, you prevent memory leaks by tearing down components explicitly. Moreover, OWL handles all cleanup — so you don’t need manual code.</p><p>12. How PySquad Can Help with Odoo 18 OWL JS</p><p>First, PySquad offers migration services from Odoo 17 to Odoo 18, ensuring a smooth transition to OWL 2. Next, PySquad delivers hands-on training so your team adopts reactive patterns effectively. Moreover, PySquad refactors legacy widgets and optimizes your front-end performance. Finally, PySquad provides ongoing support to keep your Odoo installation up to date and bug-free.</p><h4>Migration Guide: Upgrading from Odoo 17 OWL to Odoo 18 OWL JS</h4><p>First, audit your existing OWL 1 widgets and identify manual render calls. Next, update lifecycle methods from mounted() to onMounted() and willUnmount() to onWillUnmount(). Moreover, wrap your state objects and arrays in reactive() to leverage automatic updates. Consequently, you will remove redundant this.render() calls. Afterwards, validate props by adding the props static field with type definitions. Finally, test each component in isolation to confirm that UI updates behave correctly.</p><h4>Best Practices for Odoo 18 OWL JS Development</h4><p>First, use reactive state sparingly to avoid over-rendering. Next, group related data in a single reactive object. Moreover, add key attributes in t-foreach loops to help OWL track nodes. Consequently, you will improve performance. Additionally, validate props to catch bugs early. Furthermore, destroy components when you no longer need them to free memory. Finally, follow the <a href="https://www.odoo.com/documentation/18.0/developer/reference/owl.html">official Odoo OWL documentation</a>{:target=”_blank”} for API updates.</p><h4>Troubleshooting Common OWL 2 Issues</h4><p>State Not Updating</p><p>First, verify that you wrapped your data in reactive(). Next, avoid direct mutations on plain objects. Moreover, ensure that you call component methods correctly with t-on-click=”methodName”.</p><p>Lifecycle Hooks Not Firing</p><p>First, check that you imported the hooks from @odoo/owl. Next, confirm that setup() runs before you call hooks. Moreover, ensure that you mount your component with mount() instead of a custom renderer.</p><p>Template Compilation Errors</p><p>First, validate your XML syntax carefully. Next, run your build tool to catch compile-time errors. Moreover, refer to the official docs for directive usage.</p><h4>Conclusion</h4><p>First, Odoo 18 OWL JS brings a modern, reactive framework that simplifies front-end development. Next, its new lifecycle hooks, reactive state management, and props validation improve code quality and maintainability. Moreover, dynamic component support and enhanced slots give you great flexibility in building UIs. Consequently, you can deliver richer features with less code and fewer errors. Finally, by following this tutorial and best practices, you will accelerate your Odoo development workflow.</p><h4>Frequently Asked Questions</h4><p>What versions of Odoo support OWL 2?</p><p>First, OWL 2 arrives in <strong>Odoo 18</strong>, and earlier versions remain on OWL 1 or older JS frameworks.</p><p>Can I use OWL 2 in community versus enterprise?</p><p>First, OWL 2 works identically in both editions, because it lives on the front-end.</p><p>How do I debug OWL components?</p><p>First, use browser dev tools to inspect DOM updates. Next, add console.log statements within lifecycle hooks. Moreover, enable source maps in your build to see original code.</p><p>Where can I learn more?</p><p>First, visit the <a href="https://www.odoo.com/documentation/18.0/developer/reference/owl.html">Odoo OWL documentation</a>{:target=”_blank”} for in-depth API details.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff09272f9f28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set Up Odoo18 Promotion]]></title>
            <link>https://medium.com/@teguhteja/set-up-odoo18-promotion-9916f58644f5?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9916f58644f5</guid>
            <category><![CDATA[odoo-sales]]></category>
            <category><![CDATA[odoo18]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 12 May 2025 10:48:33 GMT</pubDate>
            <atom:updated>2025-05-12T10:48:33.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Set Up Odoo18 Promotion" src="https://cdn-images-1.medium.com/max/1024/0*Hp9OyfpAmjvmi_mj.png" /></figure><h4>Your Ultimate Guide to Discounts</h4><p>Effectively learning to <strong>Set Up Odoo18 Promotion</strong> programs can significantly boost your sales and customer engagement. Moreover, Odoo 18 offers a robust and flexible promotions engine that allows businesses to create a wide variety of discount schemes, coupon codes, and special offers. Consequently, by understanding how to configure these promotions, you can tailor your marketing efforts to specific customer segments, product lines, or sales events. Furthermore, this comprehensive tutorial will guide you step-by-step through the process of creating and managing promotions in Odoo 18, drawing insights from common use cases. Therefore, mastering this functionality will empower you to drive revenue and enhance customer loyalty.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fct7ul-S6rHE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dct7ul-S6rHE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fct7ul-S6rHE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf652f4f1849f52fa31ce6a6ace667c7/href">https://medium.com/media/bf652f4f1849f52fa31ce6a6ace667c7/href</a></iframe><h4>Understanding Odoo 18’s Promotion Engine Fundamentals</h4><p><a href="https://teguhteja.id/odoo-sales-app-guide-to-boost-your-sales/">Before</a> diving into the practical steps to <strong>Set Up Odoo18 Promotion</strong> campaigns, it’s essential to grasp the core concepts that underpin this powerful feature. Subsequently, this understanding will enable you to make informed decisions when configuring your promotional offers.</p><p>Core Components: Conditions and Rewards in Odoo Promotions</p><p>At its heart, every promotion in Odoo 18 consists of two primary elements: conditions and rewards. Firstly, <strong>Conditions</strong> define the criteria a customer’s order must meet for the promotion to apply. For instance, a condition could be a minimum purchase amount, the inclusion of specific products, or the purchase of a certain quantity of an item. Secondly, <strong>Rewards</strong> specify what the customer receives if the conditions are met. For example, a reward might be a percentage discount, a fixed amount off, a free product, or a discount on the cheapest item in the cart. The VTT “Sales V.18 ｜ promotions ｜ العروض الترويجيه .id.vtt” clearly illustrates this by showing how to set rules (conditions) for product categories and then apply a discount (reward) to the least expensive product.</p><p>The Power of Domains in Defining Promotion Applicability</p><p>Odoo utilizes its powerful domain builder to precisely define the scope of both conditions and rewards when you <strong>Set Up Odoo18 Promotion</strong> rules. Essentially, a domain is a set of criteria that filters records. In the context of promotions, you can use domains to specify:</p><p>- <strong>Applicable Products for Conditions:</strong> For example, the promotion applies only if the customer buys products from the “Electronics” category or products with a specific tag like “New Arrival.”<br>- <strong>Applicable Products for Rewards:</strong> For instance, the discount is applied only to products within the “Accessories” category, or a specific product is given as a free gift.<br>The VTT demonstrates creating domains to filter for product categories like “Mouse” and “Keyboard” to trigger a promotion.<br>Types of Promotions You Can Create in Odoo 18</p><p>Odoo 18’s promotion engine is versatile, allowing you to implement various promotional strategies. For example, you can create:</p><p>- <strong>Percentage Discounts:</strong> Offer a percentage off on specific products, categories, or the entire order.<br>- <strong>Fixed Amount Discounts:</strong> Provide a fixed monetary value discount.<br>- <strong>Buy X Get Y Free (or Discounted):</strong> For instance, buy two items and get the third one free or at a reduced price.<br>- <strong>Cheapest Product Discount:</strong> Apply a discount to the least expensive item in the cart if certain conditions are met.<br>- <strong>Specific Product Rewards:</strong> Offer a particular product for free or at a discount.<br>- <strong>Coupon-Based Promotions:</strong> Generate unique codes that customers can apply to receive discounts.</p><p>Understanding these fundamentals will make the subsequent steps to <strong>Set Up Odoo18 Promotion</strong> programs much clearer.</p><h4>Initial Configuration for Odoo 18 Promotions</h4><p>Before you begin creating specific promotional offers, ensure that the necessary modules and settings are active in your Odoo 18 environment. Generally, the promotions functionality is part of the Sales and Point of Sale modules.</p><p>Ensuring Necessary Modules are Installed and Active</p><p>Firstly, navigate to your Odoo Apps. Then, search for “Sales” and “Point of Sale” (if you plan to use promotions in-store). Subsequently, ensure these apps are installed. If not, install them. Usually, the core promotion engine is tightly integrated and doesn’t require a separate app installation beyond these standard modules.</p><p>Accessing the Promotions Program Interface</p><p>Once the modules are ready, you can access the promotions setup area. Typically, you will find this under the Sales module.</p><p>- <strong>Go to the Sales Module:</strong> From your Odoo dashboard, click on the Sales application.<br>- <strong>Navigate to Promotions:</strong> Look for a menu item like Products and then a sub-menu such as Promotion Programs or Coupons &amp; Promotions. The exact naming might vary slightly, but it will be intuitively labeled. The VTT jumps directly into creating a promotion, implying this navigation is straightforward.</p><p>With these initial checks complete, you are now ready to <strong>Set Up Odoo18 Promotion</strong> campaigns.</p><h4>Step-by-Step: How to Set Up Odoo18 Promotion Programs</h4><p>Let’s walk through the process of creating a new promotion program in Odoo 18. We will cover the essential fields and options you need to configure, drawing parallels with the examples shown in the VTT.</p><p>Creating a New Promotion Program</p><p>This is the first step in bringing your promotional idea to life.</p><p>- <strong>Click “Create”:</strong> In the Promotion Programs list view, click the “Create” button to start a new promotion.<br>- <strong>Program Name:</strong> Assign a clear and descriptive name to your promotion program. For example, “10% Off Keyboards &amp; Mice” or “Summer Sale Kickoff.” This helps in identifying the promotion later.<br>- <strong>Currency:</strong> Select the currency in which this promotion will operate, if applicable (often defaults to your company currency).<br>- <strong>Validity Dates:</strong><br>- <strong>Start Date:</strong> Specify the date from which the promotion becomes active.<br>- <strong>End Date:</strong> Specify the date on which the promotion expires. Leaving this blank might make the promotion indefinite until manually deactivated. The VTT mentions the importance of dates for determining when a promotion is active.<br>- <strong>Availability:</strong><br>- <strong>Sales:</strong> Check this box if the promotion should be applicable to sales orders created through the Sales module.<br>- <strong>Point of Sale:</strong> Check this box if the promotion should be available at your physical retail locations using the Point of Sale module. The VTT explicitly mentions that promotions can work in both Sales and Point of Sale.<br>- <strong>Company:</strong> If you operate in a multi-company environment, select the company for which this promotion is valid.<br>Defining Conditions: Who Qualifies for the Promotion?</p><p>This section is crucial as it determines when the promotion will trigger. You will use Odoo’s domain builder extensively here.</p><p>Based on Customer<br>- <strong>Specific Customers:</strong> You can restrict the promotion to certain customers or customer tags.<br>Based on Products</p><p>This is a very common way to <strong>Set Up Odoo18 Promotion</strong> conditions.</p><p>- <strong>Minimum Quantity of Products:</strong> Set a rule that the customer must purchase at least a certain number of products (e.g., “Order at least 3 items”).<br>- <strong>Minimum Purchase Amount:</strong> Specify that the total order value (or value of specific products) must exceed a certain amount (e.g., “Spend $100 or more”).<br>- <strong>Specific Products Required (Using Domain):</strong> This is where you define which products must be in the cart.<br>- Click on “Add a filter” or “Edit Domain” under the product conditions section.<br>- <strong>Field:</strong> Choose a field like “Product,” “Product Category,” or “Product Tags.” The VTT heavily focuses on “Product Category.”<br>- <strong>Operator:</strong> Select an operator (e.g., “is equal to,” “is in,” “contains”).<br>- <strong>Value:</strong> Specify the product, category, or tag. For example, to apply the promotion if a customer buys any mouse or keyboard, you might create two rules:<br>-<br>- <br>And then specify if <em>all</em> conditions must be met or if <em>any</em> condition is sufficient. The VTT shows creating a domain for “Kitagori Mouse dan Keyboard” (Mouse and Keyboard Category).<br>- <strong>Quantity:</strong> For each product rule, you can specify the minimum quantity of that product/category required.<br>Based on Order Total<br>- <strong>Minimum Order Amount:</strong> The promotion applies if the total order value reaches a certain threshold.<br>Defining Rewards: What Does the Customer Get?</p><p>Once the conditions are met, the reward is applied.</p><p>Reward Type<br>- <strong>Discount:</strong> This is the most common reward type.<br>- <strong>Apply Discount On:</strong><br>- <strong>Order:</strong> The discount applies to the entire order.<br>- <strong>Cheapest Product:</strong> The discount applies to the least expensive product among those that meet the condition criteria. The VTT explicitly demonstrates this: “diskon 10% untuk produk termurah saya” (10% discount on my cheapest product).<br>- <strong>Specific Products:</strong> The discount applies only to specific products defined by another domain. The VTT shows this by applying a discount to a “mouse Lenovo” if conditions are met.<br>- <strong>Discount Calculation:</strong><br>- <strong>Percentage:</strong> Enter the discount percentage (e.g., 10 for 10%).<br>- <strong>Fixed Amount:</strong> Enter a fixed monetary discount.<br>- <strong>Max Discount Amount:</strong> You can cap the discount amount.<br>- <strong>Free Product:</strong><br>- <strong>Select Product:</strong> Choose the specific product that will be given for free.<br>- <strong>Quantity:</strong> Specify how many units of the free product are given.<br>- <strong>Free Shipping:</strong> (If applicable and configured in your shipping methods)<br>Applying Rewards to Specific Products (Using Domain)</p><p>If your reward (e.g., a discount) is meant for specific products, you will again use the domain builder.</p><p>- <strong>Reward Product Domain:</strong> Click “Edit Domain” in the reward section.<br>- <strong>Define Criteria:</strong> Similar to conditions, specify the products, categories, or tags that are eligible for the reward. For example, if the condition is “Buy any Laptop,” the reward might be “10% off any Mouse.” Here, the reward domain would be . The VTT discusses applying rewards to specific products like a “mouse Lenovo” or to all products within a category like “mouse/keyboard.”<br>Example Walkthrough: 10% Off Cheapest Product (Mouse or Keyboard)</p><p>Let’s translate a scenario from the VTT to <strong>Set Up Odoo18 Promotion</strong> steps: “If a customer buys at least one mouse AND at least one keyboard, they get a 10% discount on the cheapest of those two items (or any item if not restricted).”</p><p>- <strong>Program Name:</strong> “10% Off Cheapest: Mouse &amp; Keyboard Combo”<br>- <strong>Validity Dates:</strong> Set as needed.<br>- <strong>Availability:</strong> Check “Sales” and/or “Point of Sale.”<br>- <strong>Conditions:</strong><br>- <strong>Based on Products:</strong><br>- Rule 1:<br>- <strong>Product Domain:</strong><br>- <strong>Quantity:</strong> At least 1<br>- Rule 2:<br>- <strong>Product Domain:</strong><br>- <strong>Quantity:</strong> At least 1<br>- <strong>Condition Logic:</strong> Ensure the logic is set to “ALL conditions must be true.”<br>- <strong>Rewards:</strong><br>- <strong>Reward Type:</strong> Discount<br>- <strong>Apply Discount On:</strong> Cheapest Product<br>- <strong>Discount Calculation:</strong> Percentage<br>- <strong>Percentage Value:</strong> 10<br>- <strong>(Optional) Reward Product Domain:</strong> If you want the “cheapest product” to be chosen <em>only</em> from mice and keyboards, you would add a domain here like . If left blank, it might consider the cheapest product in the entire order that meets the conditions. The VTT implies the discount applies to the cheapest among the conditional products.<br>Saving and Activating the Promotion</p><p>Once you have configured all the details:</p><p>- <strong>Save:</strong> Click the “Save” button.<br>- <strong>Activate (if applicable):</strong> Some Odoo versions might have a status (Draft, Active). Ensure it’s active if there’s such a control, or it becomes active based on the start date.</p><h4>Advanced Promotion Strategies and Considerations in Odoo 18</h4><p>Beyond basic setups, Odoo 18 allows for more nuanced promotional strategies. Understanding these will help you maximize the effectiveness when you <strong>Set Up Odoo18 Promotion</strong> campaigns.</p><p>Coupon Code Integration with Promotions</p><p>While the VTT focuses on automatic promotions, Odoo 18 also supports coupon codes.</p><p>- <strong>Generate Coupon Codes:</strong> Within a promotion program, you can often generate a set of unique coupon codes or a generic code.<br>- <strong>Coupon Application:</strong> Customers can then enter these codes during checkout (in Sales or POS) to avail the promotion.<br>- <strong>Usage Limits:</strong> You can set limits on how many times a coupon can be used in total or per customer.<br>Stacking Promotions: How Odoo Handles Multiple Offers</p><p>Consider how Odoo handles situations where multiple promotions might apply to the same order.</p><p>- <strong>Promotion Priority:</strong> Odoo might have a system for prioritizing promotions (e.g., applying the one that gives the best discount or based on a sequence).<br>- <strong>Cumulative Promotions:</strong> Check if promotions can be cumulative or if only one applies. This is usually a global setting or a per-promotion setting. The VTT doesn’t explicitly detail stacking, but it’s a crucial real-world consideration.<br>Targeting Specific Customer Segments</p><p>Leverage customer tags or specific customer selections in your promotion conditions to target:</p><p>- <strong>New Customers:</strong> Offer a welcome discount.<br>- <strong>Loyal Customers:</strong> Provide exclusive offers to your VIPs.<br>- <strong>Wholesale Customers:</strong> Set up different pricing tiers or bulk discounts.<br>Promotions for Product Launches or Clearing Stock</p><p>Use promotions strategically:</p><p>- <strong>Product Launches:</strong> Create introductory offers for new products to generate initial buzz and sales.<br>- <strong>Stock Clearance:</strong> Offer significant discounts on end-of-life products or items you want to clear from inventory. You can use product domains to target these specific items precisely.<br>Analyzing Promotion Performance</p><p>After you <strong>Set Up Odoo18 Promotion</strong> campaigns and they run, it’s vital to track their performance.</p><p>- <strong>Sales Reports:</strong> Use Odoo’s sales reporting tools to see which promotions are driving sales.<br>- <strong>Coupon Usage Reports:</strong> If using coupons, track their redemption rates.<br>- <strong>Profitability Analysis:</strong> Ensure that your promotions are not only increasing sales volume but are also profitable. Sometimes, a high discount might lead to losses if not carefully planned.</p><h4>Practical Examples from the VTT Translated to Odoo 18 Setup</h4><p>The VTT “Sales V.18 ｜ promotions ｜ العروض الترويجيه .id.vtt” provides several scenarios. Let’s outline how to configure them.</p><p>Scenario 1: Discount on Specific Product (e.g., Lenovo Mouse)<br>- <strong>Goal:</strong> Offer a 10% discount on the “Lenovo Mouse” if the customer buys any keyboard.<br>- <strong>Setup:</strong><br>- <strong>Program Name:</strong> “10% Off Lenovo Mouse with Keyboard Purchase”<br>- <strong>Conditions:</strong><br>- Product Domain:<br>- Quantity: At least 1<br>- <strong>Rewards:</strong><br>- Reward Type: Discount<br>- Apply Discount On: Specific Products<br>- Reward Product Domain:<br>- Discount Calculation: Percentage<br>- Percentage Value: 10<br>The VTT narrator says, “Diskon Anda adalah untuk mouse Lenovo seharga 125” (Your discount is for the Lenovo mouse priced at 125), implying a specific product reward.<br>Scenario 2: Category-Wide Discount (e.g., All Mice and Keyboards)<br>- <strong>Goal:</strong> Offer a 10% discount on all mice and all keyboards in the cart if the customer buys at least one mouse OR one keyboard.<br>- <strong>Setup:</strong><br>- <strong>Program Name:</strong> “10% Off All Mice &amp; Keyboards”<br>- <strong>Conditions:</strong><br>- Product Domain: (This means if any product from these categories is present)<br>- Quantity: At least 1 (for the overall condition to trigger based on at least one item from the specified categories)<br>- <strong>Rewards:</strong><br>- Reward Type: Discount<br>- Apply Discount On: Specific Products<br>- Reward Product Domain: (This ensures the discount applies to all items from these categories in the cart)<br>- Discount Calculation: Percentage<br>- Percentage Value: 10<br>The VTT mentions, “Anda akan mendapatkan diskon 10% untuk mouse dan 10% di keyboard” (You will get a 10% discount on the mouse and 10% on the keyboard), suggesting the discount applies to all eligible items.<br>Important Note on “Conditioner Roll” (Conditional Rules)</p><p>The VTT frequently mentions “rol kondisioner” (conditioner roll), which refers to the set of conditional rules you define. It emphasizes that the reward is only applied if these conditions are met. For example, “Persamaan ini adalah kondisi yang harus Anda capai agar bisa … mendapat pahala” (This equation/rule is the condition you must achieve to get the reward). This reinforces the importance of correctly setting up your product domains in the “Conditions” section.</p><h4>Conclusion: Mastering Odoo 18 Promotions for Business Growth</h4><p>Successfully learning to <strong>Set Up Odoo18 Promotion</strong> programs is a valuable skill that can directly contribute to your business’s success. Moreover, by leveraging the flexible conditions and diverse reward options within Odoo’s promotion engine, you can design targeted and effective marketing campaigns. Furthermore, remember to clearly define your objectives for each promotion, configure the conditions and rewards meticulously using domains, and always test your setup before launching. Consequently, with practice and a good understanding of the principles outlined in this guide and demonstrated in resources like the provided VTT, you will be well-equipped to use Odoo 18 promotions to drive sales, attract new customers, and retain existing ones.</p><p>For more foundational information on Odoo’s sales and marketing features, you can always consult the <a href="https://www.odoo.com/documentation/18.0/applications/sales/sales/products_prices/loyalty_discount.html">Official Odoo Documentation</a> which provides a wealth of knowledge on the platform’s capabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9916f58644f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding Images in Kanban View with Odoo: Step-by-Step Guide]]></title>
            <link>https://medium.com/@teguhteja/adding-images-in-kanban-view-with-odoo-step-by-step-guide-2eb878d60ef7?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eb878d60ef7</guid>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[odoo18]]></category>
            <category><![CDATA[odoo-development]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 01:28:18 GMT</pubDate>
            <atom:updated>2025-05-12T09:22:25.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/0*f1EPRFUPcJo5Vp2j" /></figure><p>Enhancing your Odoo applications with images in the Kanban view can significantly improve visual representation and user experience. This tutorial will guide you through the process of adding images to the Kanban view in Odoo, ensuring your data is both informative and visually appealing. By the end of this guide, you’ll be able to seamlessly integrate images into your Kanban boards, making your Odoo modules more interactive and user-friendly.</p><h4>Understanding the Kanban View in Odoo</h4><p>The Kanban view in Odoo is a versatile tool that allows users to visualize records as cards within columns. This view is particularly useful for tracking tasks, projects, and various workflows. By incorporating images into the Kanban view, you can provide a more intuitive and engaging interface for users.</p><h4>Prerequisites for Adding Images</h4><p>Before diving into the implementation, ensure you have the following:</p><h4>Step 1: Defining the Image Field in Your Model</h4><p>To display images in the Kanban view, start by defining an image field in your Odoo model. This field will store the image data associated with each record.</p><pre>from odoo import models, fields class Student(models.Model): _name = &#39;wb.student&#39; _description = &#39;Student Information&#39; name = fields.Char(string=&quot;Name&quot;, required=True) student_image = fields.Image(string=&quot;Student Image&quot;) hobby_list = fields.Many2many( comodel_name=&quot;wb.hobby&quot;, relation=&quot;student_hobby_list_relation&quot;, column1=&quot;student_id&quot;, column2=&quot;hobby_id&quot;, string=&quot;Hobbies&quot;, help=&quot;Select hobby list for this student!&quot;, ) status = fields.Selection([ (&#39;draft&#39;, &#39;Draft&#39;), (&#39;confirmed&#39;, &#39;Confirmed&#39;), (&#39;done&#39;, &#39;Done&#39;) ], string=&quot;Status&quot;, default=&#39;draft&#39;)</pre><p><em>Explanation</em>: Here, we define a student_image field using fields.Image. This field will store the image for each student record. Additionally, other fields like name, hobby_list, and status are defined to manage student information.</p><h4>Step 2: Modifying the Kanban View to Include Images</h4><p>Next, update the Kanban view to display the image alongside other record details.</p><pre>&lt;odoo&gt; &lt;record id=&quot;view_student_kanban&quot; model=&quot;ir.ui.view&quot;&gt; &lt;field name=&quot;name&quot;&gt;wb.student.kanban&lt;/field&gt; &lt;field name=&quot;model&quot;&gt;wb.student&lt;/field&gt; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;kanban class=&quot;kanban-class&quot;&gt; &lt;templates&gt; &lt;t t-name=&quot;kanban-box&quot;&gt; &lt;div class=&quot;oe_kanban_global_click&quot;&gt; &lt;field name=&quot;student_image&quot; widget=&quot;image&quot; class=&quot;oe_avatar&quot;/&gt; &lt;strong&gt;&lt;field name=&quot;name&quot;/&gt;&lt;/strong&gt; &lt;div&gt;&lt;field name=&quot;status&quot;/&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;oe_kanban_bottom_left&quot;&gt; &lt;field name=&quot;hobby_list&quot;/&gt; &lt;/div&gt; &lt;/t&gt; &lt;/templates&gt; &lt;kanban_mobile default_group_by=&quot;status&quot;/&gt; &lt;/kanban&gt; &lt;/field&gt; &lt;/record&gt; &lt;/odoo&gt;</pre><p><em>Explanation</em>: In this XML snippet, we define a Kanban view for the wb.student model. The student_image field is incorporated using the widget=&quot;image&quot; attribute, and the oe_avatar class ensures proper styling. The student&#39;s name and status are also displayed, along with their hobbies.</p><h4>Step 3: Adjusting the Form View for Image Upload</h4><p>To allow users to upload images, modify the form view of the student model to include the image field.</p><pre>&lt;odoo&gt; &lt;record id=&quot;view_student_form&quot; model=&quot;ir.ui.view&quot;&gt; &lt;field name=&quot;name&quot;&gt;wb.student.form&lt;/field&gt; &lt;field name=&quot;model&quot;&gt;wb.student&lt;/field&gt; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt; &lt;form string=&quot;Student Form&quot;&gt; &lt;sheet&gt; &lt;group&gt; &lt;field name=&quot;name&quot;/&gt; &lt;field name=&quot;student_image&quot; widget=&quot;image&quot; class=&quot;oe_avatar&quot;/&gt; &lt;/group&gt; &lt;group&gt; &lt;field name=&quot;hobby_list&quot;/&gt; &lt;field name=&quot;status&quot;/&gt; &lt;/group&gt; &lt;/sheet&gt; &lt;/form&gt; &lt;/field&gt; &lt;/record&gt; &lt;/odoo&gt;</pre><p><em>Explanation</em>: The form view includes the student_image field with the widget=&quot;image&quot; attribute, allowing users to upload images directly from the form interface. This setup ensures that images are easily manageable alongside other student details.</p><h4>Step 4: Applying CSS for Enhanced Styling</h4><p>To make the images appear more appealing in the Kanban view, apply custom CSS styles.</p><pre>/* static/src/css/kanban.css */ .kanban-class .oe_avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }</pre><p><em>Explanation</em>: This CSS snippet styles the avatar images to be circular with a consistent size, enhancing the visual layout of the Kanban cards.</p><h4>Step 5: Updating the Module Manifest</h4><p>Ensure that your module’s manifest file includes the necessary dependencies and assets.</p><pre># __manifest__.py { &#39;name&#39;: &#39;Student Management&#39;, &#39;version&#39;: &#39;1.0&#39;, &#39;depends&#39;: [&#39;base&#39;, &#39;web&#39;], &#39;data&#39;: [ &#39;views/student_kanban_view.xml&#39;, &#39;views/student_form_view.xml&#39;, &#39;security/ir.model.access.csv&#39;, ], &#39;assets&#39;: { &#39;web.assets_backend&#39;: [ &#39;your_module/static/src/css/kanban.css&#39;, ], }, }</pre><p><em>Explanation</em>: The manifest file lists all the necessary XML files for views and security, as well as includes the custom CSS for styling the Kanban view.</p><h4>Step 6: Installing and Testing the Module</h4><p>After setting up the fields, views, and styles, install your custom module from the Odoo Apps. Once installed, navigate to the Kanban view of the student model to see the images displayed alongside other details.</p><p><em>Testing Tips</em>:</p><h4>Troubleshooting Common Issues</h4><p>While adding images to the Kanban view in Odoo is straightforward, you might encounter some common challenges:</p><ul><li><strong>Images Not Displaying</strong>: Ensure that the widget=&quot;image&quot; attribute is correctly set in both Kanban and form views.</li><li><strong>Styling Problems</strong>: Double-check your CSS to ensure that classes are applied correctly and paths to assets are accurate.</li><li><strong>Performance Lag</strong>: Large image files can slow down the Kanban view. Consider optimizing images for web use.</li></ul><h4>Best Practices for Managing Images in Odoo</h4><p>To maintain an efficient and user-friendly system, adhere to the following best practices:</p><h4>Extending Functionality: Adding Image Filters</h4><p>Enhance your Kanban view by adding filters based on image attributes or other related fields.</p><p><em>Explanation</em>: These filters allow users to quickly identify records with or without images, improving data management and segmentation.</p><p>Odoo’s built-in image widget offers various customization options. Explore these to further enhance the image display in your Kanban view.</p><h4>Conclusion</h4><p>Integrating images into the Kanban view of your Odoo applications elevates the visual appeal and functionality of your modules. By following this step-by-step guide, you can effortlessly add and manage images, providing a richer and more interactive experience for your users. Remember to adhere to best practices for image optimization and styling to maintain performance and aesthetics.</p><p>For more detailed information on Odoo’s Kanban views and image management, visit the <a href="https://www.odoo.com/documentation">Odoo Documentation</a>.</p><p><em>Originally published at </em><a href="https://teguhteja.id/add-images-in-kanban-view-odoo-development-tutorial/?swcfpc=1"><em>https://teguhteja.id</em></a><em> on February 15, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eb878d60ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial create Odoo addons for REST-API using SWAGGER]]></title>
            <link>https://medium.com/@teguhteja/tutorial-create-odoo-addons-for-rest-api-using-swagger-d33eca70fed4?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d33eca70fed4</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[odoo-development]]></category>
            <category><![CDATA[swagger]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 16:34:30 GMT</pubDate>
            <atom:updated>2022-10-10T16:34:30.502Z</atom:updated>
            <content:encoded><![CDATA[<p>I haven’t written in a long time because I’m busy with various projects. Last year struggled as an Odoo developer and had many tutorials related to that. One of the tutorials is to create <a href="https://en.wikipedia.org/wiki/Odoo">Odoo</a> addons for <a href="https://en.wikipedia.org/wiki/Representational_state_transfer">REST API</a> using <a href="https://en.wikipedia.org/wiki/Swagger_(software)">SWAGGER</a>. Sounds quite complicated, what is Odoo, what is REST API, what is SWAGGER ? well you can read it in Wikipedia for first paragraph</p><p>This tutorial was first published in the medium <a href="https://medium.com/@azizadingrh/odoo-rest-api-include-swagger-d25c5f20ed5e">Odoo REST API</a> by <a href="https://medium.com/u/c3fef70fea50">Aziz Adi Nugroho</a> using Indonesian. For this tutorial there are some improvements source code in Github and example indent source code</p><p><strong>Preparation</strong></p><p>Preparation in using this tutorial:<br>1. Make sure you are familiar with odoo, odoo addons module, rest api, python.<br>2. You have installed some of these modules into your odoo:</p><ul><li><strong>component </strong>from <a href="https://apps.odoo.com/apps/modules/14.0/component/">https://apps.odoo.com/apps/modules/14.0/component/</a></li><li><strong>base_rest </strong>from <a href="https://github.com/OCA/rest-framework">https://github.com/OCA/rest-framework</a></li><li><strong>auth_api_key </strong>from <a href="https://github.com/OCA/server-auth">https://github.com/OCA/server-auth</a></li><li><strong>base_rest_auth_api_key </strong>from <a href="https://github.com/OCA/rest-framework">https://github.com/OCA/rest-framework</a></li><li><strong>base_rest_datamodel </strong>from <a href="https://github.com/OCA/rest-framework">https://github.com/OCA/rest-framework</a></li><li><strong>helpdesk_mgmt</strong> from <a href="https://apps.odoo.com/apps/modules/14.0/helpdesk_mgmt/">https://apps.odoo.com/apps/modules/14.0/helpdesk_mgmt/</a></li></ul><p>a quick way, git clone, copy and paste the module, <em>pip install -r requirements.txt</em> from that folder then install the addons above</p><p>this tutorial we will develop an endpoint to create a ticket complaint. The parameters needed are the subject ticket and description. The registered path is <em>/api/private/helpdesk/ticket/create.</em></p><p>One of my favorite things about creating addons using templates with scaffold. Example <em>python odoo-bin scaffold api_ticket</em> into <em>addons_path</em> folder and added <em>datamodels</em> and <em>services</em> folder so that the project structure :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gDnGLTJ9MSOJ2FRO_xRSg.png" /><figcaption>structure file or tree -L 2</figcaption></figure><p>Add the dependency module in __manifest__.py :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLANa2dMGeDAplZu1YLHhQ.png" /><figcaption>add depends</figcaption></figure><p>In the controller folder then create a main.py file and write the script like the previous tutorial or you can see on my github. If you want to make the root path public, then comment default_auth. Just like the controller then in the datamodels folder write ticket_datamodel.py and add the script. The datamodel is used to describe the parameters in the API request body.<br>In the services folder then add ticket_service.py code is as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nGOaJF9tjVvJll0Tjq4Xw.png" /><figcaption>fix services.py with indentention</figcaption></figure><p>The _usage parameter is used to describe the path in ticket.service. _collection parameter to connect the service path with the root path on the controller.</p><p>The function to create a new data record is described in create() with the <a href="http://twitter.com/restapi">@restapi</a>.method decorator. The decorator needs to describe the path for the create function, input parameters (which have been previously created in the datamodel), output parameters (which are described in the _res_ticket() function) and auth (for private/public API sets).</p><p>After all then the api_ticket module is ready to be installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*r88o5OhchJL4nukHIx7MnQ.png" /><figcaption>REST API after install API Ticket</figcaption></figure><p>Next, we try to open the REST API menu then a display like the following will appear. If not already displayed like this. Please look the errors that appear on the console. for example using F12 in your web browser. Or if you find problem the commenting here and I hope can help you</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7-86qQ0-tYbp-w4swwf_A.png" /><figcaption>first look rest api using swagger</figcaption></figure><p>The API that we have created will be automatically documented because it is integrated with Swagger.</p><p>The API that we have created will be automatically documented because it is integrated with Swagger.</p><p>Before use you must add the API setup. Make sure you are in developer mode. We need to go to the Settings menu &gt; Technical &gt; Auth Api To and create a new API. You can use <a href="https://codepen.io/corenominal/pen/rxOmMJ">API Key Generator</a> dalam membuat API KEY</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*LVONxUfWtLKmK7gu6p3c1w.png" /><figcaption>add api ticket 01</figcaption></figure><p>Then we can go back to the REST API menu, click Authorize, set the value with the api key that was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*hrLcdpuNeZ7q3wGT0FSKLw.png" /><figcaption>api key from setup api key in setting menu</figcaption></figure><p>Then we try to hit the API directly through Swagger. Select POST &gt; Try it out. Then fill in the value of each parameter, for example as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLBCbp_pEu0oYQB5Pv95Xw.png" /><figcaption>example body for POST</figcaption></figure><p>After that we try to hit again, it will get the following response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQYppFfMwTjNvW-Msri5kQ.png" /><figcaption>result response</figcaption></figure><p>Then let’s try to check the Helpdesk menu &gt; Tickets then the data that we hit earlier to <a href="http://localhost/">http://localhost</a>:&lt;your odoo port&gt;/api/private/helpdesk/ticket/create has been made into a ticket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyH5zsIcsEiJk-Uf_vtq8w.png" /></figure><p>full source code you can look in Github <a href="https://github.com/teguhteja/odoo15-addons/tree/master/api_ticket">api_ticket</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d33eca70fed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial Assertj in Netbeans 11 with maven]]></title>
            <link>https://medium.com/@teguhteja/tutorial-assertj-in-netbeans-11-with-maven-a875591837b7?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a875591837b7</guid>
            <category><![CDATA[java-swing]]></category>
            <category><![CDATA[swing]]></category>
            <category><![CDATA[netbeans]]></category>
            <category><![CDATA[assertj]]></category>
            <category><![CDATA[junit]]></category>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Mon, 23 Mar 2020 11:35:40 GMT</pubDate>
            <atom:updated>2020-03-23T11:35:40.798Z</atom:updated>
            <content:encoded><![CDATA[<p>Why we need [Unit] Testing or why they make our life easier ? There are many answer about this question.</p><ul><li>It allows you to check the expected behavior of the piece(s) of code you are testing, serving as a contract that it must satisfy.</li><li>It also allows you to safely re-factor code without breaking the functionality (contract) of it.</li><li>It allows you to make sure that bug fixes stay fixed by implementing a Unit test after correcting a bug.</li><li>It may serve as as a way to write decoupled code (if you have testing in mind while writing your code). (<a href="https://stackoverflow.com/questions/2355463/unit-testing-in-java-what-is-it">SO — Unit testing in Java — what is it ?</a>)</li></ul><p>based on the above reasons, [Unit] Testing is very important. There are several unit tests namely Black box Testing and White box Testing. <a href="https://www.guru99.com/white-box-testing.html">WHITE BOX TESTING</a> is testing of a software solution’s internal structure, design, and coding. In this type of testing, the code is visible to the tester. <a href="https://www.guru99.com/black-box-testing.html">BLACK BOX TESTING</a> is defined as a testing technique in which functionality of the Application Under Test (AUT) is tested without looking at the internal code structure, implementation details and knowledge of internal paths of the software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*V2NKaVSgctpAMX3N.png" /><figcaption>Illustration Black Box Testing</figcaption></figure><p>One of the Black Box Testing implementations in Java Swing with<a href="https://joel-costigliola.github.io/assertj/assertj-swing.html"> AssertJ Swing</a>. AssertJ Swing is a Java library that provides a fluent interface for functional Swing UI testing. AssertJ Swing is based on JDK standard types assertions and can be used with either JUnit or TestNG. In this tutorial, we implement AssertJ Swing using Netbeans 11. Actually you can use your favorite IDE</p><h3>Step 0: Prepration</h3><p>using maven add dependency to your pom.xml</p><pre>&lt;dependencies&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.assertj&lt;/groupId&gt;<br>            &lt;artifactId&gt;assertj-swing-junit&lt;/artifactId&gt;<br>            &lt;version&gt;3.9.2&lt;/version&gt;<br>            &lt;scope&gt;test&lt;/scope&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;com.miglayout&lt;/groupId&gt;<br>            &lt;artifactId&gt;miglayout&lt;/artifactId&gt;<br>            &lt;version&gt;3.7.4&lt;/version&gt;<br>            &lt;type&gt;jar&lt;/type&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.assertj&lt;/groupId&gt;<br>            &lt;artifactId&gt;assertj-core&lt;/artifactId&gt;<br>            &lt;version&gt;3.13.2&lt;/version&gt;<br>            &lt;type&gt;jar&lt;/type&gt;<br>        &lt;/dependency&gt;<br>        &lt;dependency&gt;<br>            &lt;groupId&gt;org.assertj&lt;/groupId&gt;<br>            &lt;artifactId&gt;assertj-swing-aut&lt;/artifactId&gt;<br>            &lt;version&gt;1.0.0&lt;/version&gt;<br>        &lt;/dependency&gt;<br>    &lt;/dependencies&gt;</pre><h3>Step 1: Create Project and Add Library</h3><p>Make a project on Netbeans with name TestSwing. Using File &gt; New Project &gt;Java with Maven &gt; Java Application &gt; Next &gt; Project Name : TestSwingMaven &gt; Create package with name com.ttm.testswingmaven &gt; Finish. Add 2 files SimpleCopyApplication.java to Source Package and SimpleCopyApplicationTest.java to Test Package and add maven above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*T9RpIHtZ7NBCROSwdIy65Q.png" /><figcaption>Tree Explorer of TestSwingMaven</figcaption></figure><h3><strong>Step 2: Write Code</strong></h3><p>Add this code to SimpleCopyApplication.java and try to running it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9142214b9074bd9704791e0fa761fe4/href">https://medium.com/media/b9142214b9074bd9704791e0fa761fe4/href</a></iframe><p>then GUI will appear like this one</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*iV3WLWxLVqGHBmh8mW-4XA.png" /><figcaption>GUI SimpleCopyApplication</figcaption></figure><h3><strong>Step 3: Test GUI</strong></h3><p>Add this code into SimpleCopyApplicationTest.java</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed4f2b8db97b919f1cf9a4b2f319b9b3/href">https://medium.com/media/ed4f2b8db97b919f1cf9a4b2f319b9b3/href</a></iframe><p>after add the code and test it</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FodqIrlL_UDw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DodqIrlL_UDw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FodqIrlL_UDw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/48f018d3cdd457d1665dc8a8cb12c0e8/href">https://medium.com/media/48f018d3cdd457d1665dc8a8cb12c0e8/href</a></iframe><h3>Conclusion</h3><p>This article is based on several articles :</p><ol><li><a href="https://joel-costigliola.github.io/assertj/assertj-swing-getting-started.html">https://joel-costigliola.github.io/assertj/assertj-swing-getting-started.html</a></li><li><a href="https://stackoverflow.com/questions/46676726/how-to-get-started-testing-java-swing-gui-with-assertj-swing">https://stackoverflow.com/questions/46676726/how-to-get-started-testing-java-swing-gui-with-assertj-swing</a></li><li><a href="https://stackoverflow.com/questions/91179/automated-tests-for-java-swing-guis">https://stackoverflow.com/questions/91179/automated-tests-for-java-swing-guis</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a875591837b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to debugging in Netbeans Java]]></title>
            <link>https://medium.com/@teguhteja/how-to-debugging-in-netbeans-java-c3087d9e2f6c?source=rss-b76e2e5c0c7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3087d9e2f6c</guid>
            <dc:creator><![CDATA[IB Teguh TM]]></dc:creator>
            <pubDate>Sat, 21 Mar 2020 04:41:55 GMT</pubDate>
            <atom:updated>2020-03-21T04:41:55.745Z</atom:updated>
            <content:encoded><![CDATA[<p>Debugging is the process of finding and resolving defects or problems within a computer program that prevent correct operation of computer software or a system.Debugging tactics can involve interactive debugging, control flow analysis, unit testing, integration testing, log file analysis, monitoring at the application or system level, memory dumps, and profiling. Debug in Java can be done in 2 ways, that is the terminal method with <a href="https://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html">jdb</a> and IDE. In this article using Netbeans 11. 3 as IDE. This article from <a href="https://www.ntu.edu.sg/home/ehchua/programming/howto/NetBeans_HowTo.html#zz-4.">Programming Notes</a> by Chua Hock-Chuan (<a href="/service/mailto:ehchua@ntu.edu.sg">ehchua@ntu.edu.sg</a>) with some update.</p><h3><strong>Step 0: Write a Java Program</strong></h3><p>The following program computes and prints the factorial of <em>n</em> (=1*2*3*...*<em>n</em>). The program, however, has a logical error and produce a wrong answer for <em>n</em>=20 (&quot;The Factorial of 20 is -2102132736&quot; - a negative number?!)</p><pre>/** Compute the factorial of n */<br>public class Factorial {<br>   // Print factorial of n<br>   public static void main(String[] args) {<br>      int n = 20;<br>      int factorial = 1;<br> <br>      // n! = 1*2*3...*n<br>      for (int i = 1; i &lt;= n; i++) {<br>         factorial *= i;<br>      }<br>      System.out.println(&quot;The Factorial of &quot; + n + &quot; is &quot; + factorial);<br>   }<br>}</pre><p>Let us use the graphic debugger to debug the program.</p><h3>Step 1: Set an initial Breakpoint</h3><p>A breakpoint suspends program execution for you to examine the internal states of the program. Before starting the debugger, you need to set at least one breakpoint to suspend the execution inside the program. Set a breakpoint at main() method by clicking on the left-margin of the line containing main(). A red circle or an inverted Triangle appears in the left-margin indicating a breakpoint is set at that line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*lXMM4EQsL5rbBy1j.png" /><figcaption>How to set Breakpoint in Netbeans</figcaption></figure><p>Step 2: Start Debugging</p><p>Right click anywhere on the source code ⇒ “Debug File”. The program begins execution but suspends its operation at the breakpoint, i.e., the main() method.</p><p>As illustrated in the following diagram, the highlighted line (also pointed to by a green arrow) indicates the statement to be executed in the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/0*lS6652iCZZrC5lMk.png" /><figcaption>debug running in Netbeans</figcaption></figure><p>Step 3: Step-Over and Watch the Variables and Outputs</p><p>Click the “Step Over” button (or select “Step Over” in “Debug” menu) to single-step thru your program. At each of the step, examine the value of the variables (in the “Variable” panel) and the outputs produced by your program (in the “Output” Panel), if any. You can also place your cursor at any variable to inspect the content of the variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*YJ5B5CegavsCDhz5.png" /><figcaption>panel for debug</figcaption></figure><p>Step-into-function mean the step into function and Step-out-function go out from function. If want debug to some line use Run-to-Cursor direct to line</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*qGOdGYGHdMNPW7sm.png" /><figcaption>Variable appear from</figcaption></figure><p>Single-stepping thru the program and watching the values of internal variables and the outputs produced is the <em>ultimate</em> mean in debugging programs — because it is exactly how the computer runs your program!</p><p><strong>Step 4: Breakpoint, Run-To-Cursor, Continue and Finish</strong></p><p>As mentioned, a breakpoint <em>suspends</em> program execution and let you examine the internal states of the program. To set a breakpoint on a particular statement, click on the left-margin of that line (or select “Toggle Breakpoint” from “Run” menu).</p><p>“Continue” resumes the program execution, up to the next breakpoint, or till the end of the program.</p><p>“Single-step” thru a loop with a large count is time-consuming. You could set a breakpoint at the statement immediately outside the loop (e.g., Line 11 of the above program), and issue “Continue” to complete the loop.</p><p>Alternatively, you can place the cursor on a particular statement, and issue “Run-To-Cursor” to resume execution up to the line.</p><p>“Finish” ends the debugging session. Always terminate your current debugging session using “Finish” or “Continue” till the end of the program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3087d9e2f6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>