๐Ÿ” Assets
๐Ÿ”

Assets

  What is it? 


Assets are common code snippets that can be used and reused several times at several different places. These can be :

  • QWeb

  • Cascading Style Sheets (CSS)

  • JavaScript (JS)

The assets view just lists all the existing assets in Odoo.



Why is it useful?


This is useful from a technical point of view to avoid code duplication.


Example

A Google Map can be displayed both on the contact page of the Website and in the Field Service Management application to optimize the technicianโ€™s journey. Even if the rendering is quite different, there are some common technical things needed to display such a map. These are stored as single assets :


Extra documentation