This is the most common and recommended way. In your module’s XML file where you define the menu item, you can use the web_icon attribute. The value of this attribute should point to the icon you want to use * your_module_name: The technical name of your module. * static/description/icon.png: The path to your icon file […]
To add an icon image to a module in Odoo 18, follow these steps: Prepare the Icon Image: Create an icon image named icon.png. Ensure the image is appropriately sized, typically 256×256 pixels, and in PNG format. Place the Icon in the Module Directory: Within your module’s directory, navigate to or create the following path: […]