From 4ccf7b4de06dc5c054785aca7471ed9e8dd4a70c Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 29 Sep 2022 09:26:36 +0000 Subject: [PATCH 1/3] [IMP] event_booth: Add placeholder Adding placeholders for the booth category field on event type booth form, quick create booth form and event booth form from event for comprehension purpose. Task-2996467 X-original-commit: 7b56360feb35df9d68f71a5fad95a3248ea6a3eb Part-of: odoo/odoo#102547 --- addons/event_booth/views/event_booth_views.xml | 4 ++-- addons/event_booth/views/event_type_booth_views.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/event_booth/views/event_booth_views.xml b/addons/event_booth/views/event_booth_views.xml index bb1adb00c95..c90f9eb4a61 100644 --- a/addons/event_booth/views/event_booth_views.xml +++ b/addons/event_booth/views/event_booth_views.xml @@ -18,7 +18,7 @@ - + @@ -146,7 +146,7 @@
- +
diff --git a/addons/event_booth/views/event_type_booth_views.xml b/addons/event_booth/views/event_type_booth_views.xml index df5be278db5..b5c0acf0bdd 100644 --- a/addons/event_booth/views/event_type_booth_views.xml +++ b/addons/event_booth/views/event_type_booth_views.xml @@ -12,7 +12,7 @@

- + From 1d43d74b6d56c00203b195d8a702ad96e555ec5e Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 29 Sep 2022 09:28:34 +0000 Subject: [PATCH 2/3] [IMP] website_slides: Remove unnecessary helpers Remove unnecessary helpers so that they don't clutter the form view. Task-2996467 X-original-commit: 5017874e3d164a6e55b75f4c8b0f1addb4320c68 Part-of: odoo/odoo#102547 --- addons/website_slides/models/slide_slide.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/website_slides/models/slide_slide.py b/addons/website_slides/models/slide_slide.py index bc4955ca2b0..de9e8f4425c 100644 --- a/addons/website_slides/models/slide_slide.py +++ b/addons/website_slides/models/slide_slide.py @@ -123,7 +123,7 @@ class Slide(models.Model): tag_ids = fields.Many2many('slide.tag', 'rel_slide_tag', 'slide_id', 'tag_id', string='Tags') is_preview = fields.Boolean('Allow Preview', default=False, help="The course is accessible by anyone : the users don't need to join the channel to access the content of the course.") is_new_slide = fields.Boolean('Is New Slide', compute='_compute_is_new_slide') - completion_time = fields.Float('Duration', digits=(10, 4), help="The estimated completion time for this slide") + completion_time = fields.Float('Duration', digits=(10, 4)) # Categories is_category = fields.Boolean('Is a category', default=False) category_id = fields.Many2one('slide.slide', string="Section", compute="_compute_category_id", store=True) @@ -173,8 +173,7 @@ class Slide(models.Model): # content - webpage html_content = fields.Html("HTML Content", help="Custom HTML content for slides of category 'Article'.", translate=True, sanitize_attributes=False, sanitize_form=False) # content - images - image_binary_content = fields.Binary('Image Content', related='binary_content', readonly=False, - help="Used to filter file input to images only") + image_binary_content = fields.Binary('Image Content', related='binary_content', readonly=False) # Used to filter file input to images only image_google_url = fields.Char('Image Link', related='url', readonly=False, help="Link of the image (we currently only support Google Drive as source)") # content - documents @@ -193,8 +192,7 @@ class Slide(models.Model): help="Subtype of the slide category, allows more precision on the actual file type / source type.") document_google_url = fields.Char('Document Link', related='url', readonly=False, help="Link of the document (we currently only support Google Drive as source)") - document_binary_content = fields.Binary('PDF Content', related='binary_content', readonly=False, - help="Used to filter file input to PDF only") + document_binary_content = fields.Binary('PDF Content', related='binary_content', readonly=False) # Used to filter file input to PDF only # content - videos video_url = fields.Char('Video Link', related='url', readonly=False, help="Link of the video (we support YouTube, Google Drive and Vimeo as sources)") From 9678df1f9902a3c82784e825e7c848184cb8d79a Mon Sep 17 00:00:00 2001 From: amdi-odoo Date: Thu, 29 Sep 2022 09:30:35 +0000 Subject: [PATCH 3/3] [IMP] website_event_questions: Extend title size Avoid truncated question display by making the question field to take all available horizontal space. Task-2996467 X-original-commit: 36d59304617991cedf6aca18a91a31b0967aebd0 Part-of: odoo/odoo#102547 --- addons/website_event_questions/views/event_question_views.xml | 2 +- addons/website_event_questions/views/event_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_event_questions/views/event_question_views.xml b/addons/website_event_questions/views/event_question_views.xml index 01d7e499f4a..dc091acaba4 100644 --- a/addons/website_event_questions/views/event_question_views.xml +++ b/addons/website_event_questions/views/event_question_views.xml @@ -6,7 +6,7 @@
-

+

diff --git a/addons/website_event_questions/views/event_views.xml b/addons/website_event_questions/views/event_views.xml index 195afb2a34d..20ba25e192d 100644 --- a/addons/website_event_questions/views/event_views.xml +++ b/addons/website_event_questions/views/event_views.xml @@ -45,7 +45,7 @@ We need this because we create questions and answers when the event type changes. --> -

+