From 593d655201277e223e623ce158d3f34ceb0aae7b Mon Sep 17 00:00:00 2001 From: TuyenTran Date: Wed, 8 Oct 2025 15:41:23 +0700 Subject: [PATCH] [MISC] viin_brand_website_forum: add viindoo logo and texts --- .../views/website_templates.xml | 10 +++- viin_brand_website_forum/__init__.py | 4 ++ viin_brand_website_forum/__manifest__.py | 5 +- viin_brand_website_forum/i18n/vi_VN.po | 42 ++++++++++++++ .../i18n/viin_brand_website_forum.pot | 41 +++++++++++++ .../views/forum_forum_template_faq.xml | 18 ++++++ viin_brand_website_slides_forum/__init__.py | 8 +++ .../__manifest__.py | 58 +++++++++++++++++++ 8 files changed, 182 insertions(+), 4 deletions(-) create mode 100644 viin_brand_website_forum/i18n/vi_VN.po create mode 100644 viin_brand_website_forum/i18n/viin_brand_website_forum.pot create mode 100644 viin_brand_website_forum/views/forum_forum_template_faq.xml create mode 100644 viin_brand_website_slides_forum/__init__.py create mode 100644 viin_brand_website_slides_forum/__manifest__.py diff --git a/viin_brand_website/views/website_templates.xml b/viin_brand_website/views/website_templates.xml index ce9f0061..dafa237b 100644 --- a/viin_brand_website/views/website_templates.xml +++ b/viin_brand_website/views/website_templates.xml @@ -15,8 +15,12 @@ diff --git a/viin_brand_website_forum/__init__.py b/viin_brand_website_forum/__init__.py index e69de29b..fb1d2cc8 100644 --- a/viin_brand_website_forum/__init__.py +++ b/viin_brand_website_forum/__init__.py @@ -0,0 +1,4 @@ +def post_init_hook(env): + if env.ref('website_forum.forum_help', raise_if_not_found=False): + forum_help = env.ref('website_forum.forum_help') + forum_help._set_default_faq() diff --git a/viin_brand_website_forum/__manifest__.py b/viin_brand_website_forum/__manifest__.py index 94072507..d25f897b 100644 --- a/viin_brand_website_forum/__manifest__.py +++ b/viin_brand_website_forum/__manifest__.py @@ -48,11 +48,14 @@ # any module necessary for this one to work correctly 'depends': ['website_forum'], - + 'data': [ + 'views/forum_forum_template_faq.xml', + ], # always loaded 'demo': [ 'data/forum_demo.xml', ], + 'post_init_hook': 'post_init_hook', 'installable': True, 'auto_install': True, 'price': 0.0, diff --git a/viin_brand_website_forum/i18n/vi_VN.po b/viin_brand_website_forum/i18n/vi_VN.po new file mode 100644 index 00000000..07ebce4e --- /dev/null +++ b/viin_brand_website_forum/i18n/vi_VN.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * viin_brand_website_forum +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-10-08 08:03+0000\n" +"PO-Revision-Date: 2025-10-08 08:03+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "how to configure or customize Viindoo to specific business needs," +msgstr "Cách cấu hình hoặc tùy chỉnh Viindoo cho các nhu cầu kinh doanh cụ thể," + +#. module: viin_brand_website_forum +#: model_terms:ir.ui.view,arch_db:viin_brand_website_forum.viin_brand_website_forum_default_faq_inherit +msgid "how to develop modules for your own need," +msgstr "Cách phát triển các mô-đun theo nhu cầu riêng của bạn," + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "how to install Viindoo on a specific infrastructure," +msgstr "Cách cài đặt Viindoo trên một hạ tầng cụ thể," + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "specific questions about Viindoo service offers, etc." +msgstr "Các câu hỏi cụ thể về các gói dịch vụ của Viindoo, v.v." + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "what's the best way to use Viindoo for a specific business need," +msgstr "Cách tốt nhất để sử dụng Viindoo cho một nhu cầu kinh doanh cụ thể," + diff --git a/viin_brand_website_forum/i18n/viin_brand_website_forum.pot b/viin_brand_website_forum/i18n/viin_brand_website_forum.pot new file mode 100644 index 00000000..ed8a5082 --- /dev/null +++ b/viin_brand_website_forum/i18n/viin_brand_website_forum.pot @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * viin_brand_website_forum +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-10-08 08:03+0000\n" +"PO-Revision-Date: 2025-10-08 08:03+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "how to configure or customize Viindoo to specific business needs," +msgstr "" + +#. module: viin_brand_website_forum +#: model_terms:ir.ui.view,arch_db:viin_brand_website_forum.viin_brand_website_forum_default_faq_inherit +msgid "how to develop modules for your own need," +msgstr "" + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "how to install Viindoo on a specific infrastructure," +msgstr "" + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "specific questions about Viindoo service offers, etc." +msgstr "" + +#. module: website_forum +#: model_terms:forum.forum,faq:website_forum.forum_help +msgid "what's the best way to use Viindoo for a specific business need," +msgstr "" diff --git a/viin_brand_website_forum/views/forum_forum_template_faq.xml b/viin_brand_website_forum/views/forum_forum_template_faq.xml new file mode 100644 index 00000000..a832e5fa --- /dev/null +++ b/viin_brand_website_forum/views/forum_forum_template_faq.xml @@ -0,0 +1,18 @@ + + + + Faq Accordion (Viindoo) + qweb + + + +
  • how to install Viindoo on a specific infrastructure,
  • +
  • how to configure or customize Viindoo to specific business needs,
  • +
  • what's the best way to use Viindoo for a specific business need,
  • +
  • how to develop modules for your own need,
  • +
  • specific questions about Viindoo service offers, etc.
  • +
    +
    +
    +
    +
    diff --git a/viin_brand_website_slides_forum/__init__.py b/viin_brand_website_slides_forum/__init__.py new file mode 100644 index 00000000..255931fe --- /dev/null +++ b/viin_brand_website_slides_forum/__init__.py @@ -0,0 +1,8 @@ +def post_init_hook(env): + forums = env['forum.forum'] + if env.ref('website_slides_forum.forum_forum_demo_channel_0', raise_if_not_found=False): + forums |= env.ref('website_slides_forum.forum_forum_demo_channel_0') + if env.ref('website_slides_forum.forum_forum_demo_channel_2', raise_if_not_found=False): + forums |= env.ref('website_slides_forum.forum_forum_demo_channel_2') + if forums: + forums._set_default_faq() diff --git a/viin_brand_website_slides_forum/__manifest__.py b/viin_brand_website_slides_forum/__manifest__.py new file mode 100644 index 00000000..f73f5cfa --- /dev/null +++ b/viin_brand_website_slides_forum/__manifest__.py @@ -0,0 +1,58 @@ +{ + 'name': "Slides Forum Branding For Viindoo", + 'name_vi_VN': "Giao diện Viindoo cho module Forum", + + 'summary': """ +Theme branding Viindoo for module Slides Forum""", + 'summary_vi_VN': """ +Giao diện brand Viindoo cho module Slides Forum +""", + + 'description': """ +What it does +============ +This module will change color in navigate bar, button and logo,v.v module Slides Forum following Viindoo's brand + + +Editions Supported +================== +1. Community Edition +2. Enterprise Edition + + """, + + 'description_vi_VN': """ +Ứng dụng này làm gì +=================== +Module này sẽ thay đổi giao diện module Slides Forum theo thương hiệu Viindoo + + +Ấn bản được Hỗ trợ +================== +1. Ấn bản Community +2. Ấn bản Enterprise + +""", + + 'author': "Viindoo", + 'website': "https://viindoo.com", + 'live_test_url': "https://v18demo-int.viindoo.com", + 'live_test_url_vi_VN': "https://v18demo-vn.viindoo.com", + 'support': "apps.support@viindoo.com", + + # Categories can be used to filter modules in modules listing + # Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml + # for the full list + 'category': 'Hidden', + 'version': '0.1', + + # any module necessary for this one to work correctly + 'depends': ['website_slides_forum', 'viin_brand_website_forum'], + # always loaded + 'post_init_hook': 'post_init_hook', + 'installable': True, + 'auto_install': ['website_slides_forum'], + 'price': 0.0, + 'currency': 'EUR', + 'license': 'OPL-1', +}