-
Notifications
You must be signed in to change notification settings - Fork 11
[MISC][18.0] viin_brand_website_forum: add viindoo logo and texts #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
TuyenTran12345
wants to merge
1
commit into
Viindoo:18.0
Choose a base branch
from
TuyenTran12345:v18_fix_viin_brand_website_forum
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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ể," | ||
|
|
41 changes: 41 additions & 0 deletions
41
viin_brand_website_forum/i18n/viin_brand_website_forum.pot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 "" |
18 changes: 18 additions & 0 deletions
18
viin_brand_website_forum/views/forum_forum_template_faq.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <odoo> | ||
| <data> | ||
| <record id="viin_brand_website_forum_default_faq_inherit" model="ir.ui.view"> | ||
| <field name="name">Faq Accordion (Viindoo)</field> | ||
| <field name="type">qweb</field> | ||
| <field name="inherit_id" ref="website_forum.default_faq"/> | ||
| <field name="arch" type="xml"> | ||
| <xpath expr="//div[@id='o_website_forum_faq_heading_1']/div[hasclass('accordion-body')]//ul" position="replace" mode="inner"> | ||
| <li>how to install Viindoo on a specific infrastructure,</li> | ||
| <li>how to configure or customize Viindoo to specific business needs,</li> | ||
| <li>what's the best way to use Viindoo for a specific business need,</li> | ||
| <li>how to develop modules for your own need,</li> | ||
| <li>specific questions about Viindoo service offers, etc.</li> | ||
| </xpath> | ||
| </field> | ||
| </record> | ||
| </data> | ||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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', | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_set_default_faq() cần phải gọi lại do website_forum chạy create và gọi hàm này trước khi được xpath nên cần gọi lại sau khi cài module để render ra đúng template