Skip to content

Commit cfb4105

Browse files
[MISC] viin_brand_website_forum: add viindoo logo and texts
1 parent dd82ef9 commit cfb4105

8 files changed

Lines changed: 176 additions & 4 deletions

File tree

viin_brand_website/views/website_templates.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
</template>
1616

1717
<template id="layout" name="Main layout" inherit_id="website.layout">
18-
<xpath expr="//meta[@name='generator']" position="attributes">
19-
<attribute name="content">Viindoo</attribute>
20-
</xpath>
18+
<xpath expr="//meta[@name='generator']" position="attributes">
19+
<attribute name="content">Viindoo</attribute>
20+
</xpath>
21+
22+
<xpath expr="//t[@t-set='x_icon']" position="replace">
23+
<t t-set="x_icon" t-value="'/viin_brand/static/img/favicon.ico'"/>
24+
</xpath>
2125
</template>
2226
</odoo>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def post_init_hook(env):
2+
forum_help = env.ref('website_forum.forum_help')
3+
forum_help._set_default_faq()

viin_brand_website_forum/__manifest__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,14 @@
4848

4949
# any module necessary for this one to work correctly
5050
'depends': ['website_forum'],
51-
51+
'data': [
52+
'views/forum_forum_template_faq.xml',
53+
],
5254
# always loaded
5355
'demo': [
5456
'data/forum_demo.xml',
5557
],
58+
'post_init_hook': 'post_init_hook',
5659
'installable': True,
5760
'auto_install': True,
5861
'price': 0.0,
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * viin_brand_website_forum
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-10-08 08:03+0000\n"
10+
"PO-Revision-Date: 2025-10-08 08:03+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: website_forum
19+
#: model_terms:forum.forum,faq:website_forum.forum_help
20+
msgid "how to configure or customize Viindoo to specific business needs,"
21+
msgstr "Cách cấu hình hoặc tùy chỉnh Viindoo cho các nhu cầu kinh doanh cụ thể,"
22+
23+
#. module: viin_brand_website_forum
24+
#: model_terms:ir.ui.view,arch_db:viin_brand_website_forum.viin_brand_website_forum_default_faq_inherit
25+
msgid "how to develop modules for your own need,"
26+
msgstr "Cách phát triển các mô-đun theo nhu cầu riêng của bạn,"
27+
28+
#. module: website_forum
29+
#: model_terms:forum.forum,faq:website_forum.forum_help
30+
msgid "how to install Viindoo on a specific infrastructure,"
31+
msgstr "Cách cài đặt Viindoo trên một hạ tầng cụ thể,"
32+
33+
#. module: website_forum
34+
#: model_terms:forum.forum,faq:website_forum.forum_help
35+
msgid "specific questions about Viindoo service offers, etc."
36+
msgstr "Các câu hỏi cụ thể về các gói dịch vụ của Viindoo, v.v."
37+
38+
#. module: website_forum
39+
#: model_terms:forum.forum,faq:website_forum.forum_help
40+
msgid "what's the best way to use Viindoo for a specific business need,"
41+
msgstr "Cách tốt nhất để sử dụng Viindoo cho một nhu cầu kinh doanh cụ thể,"
42+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * viin_brand_website_forum
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-10-08 08:03+0000\n"
10+
"PO-Revision-Date: 2025-10-08 08:03+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: website_forum
19+
#: model_terms:forum.forum,faq:website_forum.forum_help
20+
msgid "how to configure or customize Viindoo to specific business needs,"
21+
msgstr ""
22+
23+
#. module: viin_brand_website_forum
24+
#: model_terms:ir.ui.view,arch_db:viin_brand_website_forum.viin_brand_website_forum_default_faq_inherit
25+
msgid "how to develop modules for your own need,"
26+
msgstr ""
27+
28+
#. module: website_forum
29+
#: model_terms:forum.forum,faq:website_forum.forum_help
30+
msgid "how to install Viindoo on a specific infrastructure,"
31+
msgstr ""
32+
33+
#. module: website_forum
34+
#: model_terms:forum.forum,faq:website_forum.forum_help
35+
msgid "specific questions about Viindoo service offers, etc."
36+
msgstr ""
37+
38+
#. module: website_forum
39+
#: model_terms:forum.forum,faq:website_forum.forum_help
40+
msgid "what's the best way to use Viindoo for a specific business need,"
41+
msgstr ""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<odoo>
2+
<data>
3+
<record id="viin_brand_website_forum_default_faq_inherit" model="ir.ui.view">
4+
<field name="name">Faq Accordion (Viindoo)</field>
5+
<field name="type">qweb</field>
6+
<field name="inherit_id" ref="website_forum.default_faq"/>
7+
<field name="arch" type="xml">
8+
<xpath expr="//div[@id='o_website_forum_faq_heading_1']/div[hasclass('accordion-body')]//ul" position="replace" mode="inner">
9+
<li>how to install Viindoo on a specific infrastructure,</li>
10+
<li>how to configure or customize Viindoo to specific business needs,</li>
11+
<li>what's the best way to use Viindoo for a specific business need,</li>
12+
<li>how to develop modules for your own need,</li>
13+
<li>specific questions about Viindoo service offers, etc.</li>
14+
</xpath>
15+
</field>
16+
</record>
17+
</data>
18+
</odoo>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def post_init_hook(env):
2+
forums = env.ref('website_slides_forum.forum_forum_demo_channel_0') | env.ref('website_slides_forum.forum_forum_demo_channel_2')
3+
forums._set_default_faq()
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
'name': "Slides Forum Branding For Viindoo",
3+
'name_vi_VN': "Giao diện Viindoo cho module Forum",
4+
5+
'summary': """
6+
Theme branding Viindoo for module Slides Forum""",
7+
'summary_vi_VN': """
8+
Giao diện brand Viindoo cho module Slides Forum
9+
""",
10+
11+
'description': """
12+
What it does
13+
============
14+
This module will change color in navigate bar, button and logo,v.v module Slides Forum following Viindoo's brand
15+
16+
17+
Editions Supported
18+
==================
19+
1. Community Edition
20+
2. Enterprise Edition
21+
22+
""",
23+
24+
'description_vi_VN': """
25+
Ứng dụng này làm gì
26+
===================
27+
Module này sẽ thay đổi giao diện module Slides Forum theo thương hiệu Viindoo
28+
29+
30+
Ấn bản được Hỗ trợ
31+
==================
32+
1. Ấn bản Community
33+
2. Ấn bản Enterprise
34+
35+
""",
36+
37+
'author': "Viindoo",
38+
'website': "https://viindoo.com",
39+
'live_test_url': "https://v18demo-int.viindoo.com",
40+
'live_test_url_vi_VN': "https://v18demo-vn.viindoo.com",
41+
'support': "[email protected]",
42+
43+
# Categories can be used to filter modules in modules listing
44+
# Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml
45+
# for the full list
46+
'category': 'Hidden',
47+
'version': '0.1',
48+
49+
# any module necessary for this one to work correctly
50+
'depends': ['website_slides_forum', 'viin_brand_website_forum'],
51+
# always loaded
52+
'post_init_hook': 'post_init_hook',
53+
'installable': True,
54+
# 'auto_install': True,
55+
'price': 0.0,
56+
'currency': 'EUR',
57+
'license': 'OPL-1',
58+
}

0 commit comments

Comments
 (0)