From 18d4e3327c7152b4c3a86ba377e3357f213b703c Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Tue, 8 Sep 2020 14:48:27 +0000 Subject: [IMP] website: add image widget support for urls char fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Prior to this commit, images were only managed when being an image field. No widget were used either. * After this commit, image stored in model as url (as res.country.image_url) can be used when specifying ':image' after the field name. The fields are now rendered using their corresponding default widget. If there is a need to force another widget and if the developer is sure that it is compatible, he/she can specify it using the notation: 'field_name:widget_name'. closes odoo/odoo#57482 Signed-off-by: Jérémy Kersten (jke) --- addons/website/data/website_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website/data/website_data.xml') diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml index c7ed6fa16b8..5dc7556d2db 100644 --- a/addons/website/data/website_data.xml +++ b/addons/website/data/website_data.xml @@ -763,7 +763,7 @@ - name,code,image,phone_code + name,code,image_url:image,phone_code:char Countries -- cgit v1.2.3