From 9d1269dbc08870333b5e258fc6ce24a75c831ebb Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 3 Feb 2023 14:48:21 +0000 Subject: [PATCH] [FIX] website: add website field in ir_asset list view For some reason the `website_id` field was added in the form view of the `ir.asset` model in a website module overide but it was not done for the list view where it matters equally (if not most regarding the flow). Indeed, those views / this model is mainly accessed for debugging purpose in which case you are most likely looking for a specific asset. In the website case, it's most of the time to find the custom asset that was created following a scss customization in the right panel of the website builder. In such a case, it will have a website_id and will be easy to find in the list view. It's also the case for all the records having a `website_id`, we show that field in both form and list view, it's always important when managing / debugging DBs in multi-website environment. See [1] for introduction of `ir.asset`. [1]: https://github.com/odoo/odoo/commit/8cc066173dfb61bd95b8e1f0716f71f4e251810a closes odoo/odoo#112156 X-original-commit: 1e6ea1a1e38f9769b91b80c3fd1e2ecabae35bb6 Signed-off-by: Quentin Smetz (qsm) --- addons/website/views/ir_asset_views.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/addons/website/views/ir_asset_views.xml b/addons/website/views/ir_asset_views.xml index 95fbc6523ba..eef7b308069 100644 --- a/addons/website/views/ir_asset_views.xml +++ b/addons/website/views/ir_asset_views.xml @@ -1,6 +1,6 @@ - + ir.asset.form.inherit.website ir.asset @@ -10,4 +10,14 @@ + + ir.asset.tree.inherit.website + ir.asset + + + + + + +