Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions viin_brand_website/views/website_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
</template>

<template id="layout" name="Main layout" inherit_id="website.layout">
<xpath expr="//meta[@name='generator']" position="attributes">
<attribute name="content">Viindoo</attribute>
</xpath>
<xpath expr="//meta[@name='generator']" position="attributes">
<attribute name="content">Viindoo</attribute>
</xpath>

<xpath expr="//t[@t-set='x_icon']" position="replace">
<t t-set="x_icon" t-value="'/viin_brand/static/img/favicon.ico'"/>
</xpath>
</template>
</odoo>
4 changes: 4 additions & 0 deletions viin_brand_website_forum/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def post_init_hook(env):
Copy link
Contributor Author

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

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()
5 changes: 4 additions & 1 deletion viin_brand_website_forum/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
42 changes: 42 additions & 0 deletions viin_brand_website_forum/i18n/vi_VN.po
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 viin_brand_website_forum/i18n/viin_brand_website_forum.pot
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 viin_brand_website_forum/views/forum_forum_template_faq.xml
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>
8 changes: 8 additions & 0 deletions viin_brand_website_slides_forum/__init__.py
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()
58 changes: 58 additions & 0 deletions viin_brand_website_slides_forum/__manifest__.py
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',
}