Skip to content
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

[ADD][16.0] viin_brand_calendar: Calendar Branding For Viindoo #359

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from
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
1 change: 1 addition & 0 deletions viin_brand_calendar/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
62 changes: 62 additions & 0 deletions viin_brand_calendar/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
'name': "Calendar Branding For Viindoo",
'name_vi_VN': "Giao diện Viindoo cho module Calendar",

'summary': """
Theme branding Viindoo for module Calendar""",
'summary_vi_VN': """
Giao diện brand Viindoo cho module Calendar
""",

'description': """
What it does
============
This module will change color navigate bar, button and logo,v.v in module Calendar 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 Calendar 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://v15demo-int.viindoo.com",
'live_test_url_vi_VN': "https://v15demo-vn.viindoo.com",
'support': "[email protected]",

# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/16.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': ['calendar'],

# always loaded
'data': [
'views/calendar_views.xml',
],
'installable': True,
'application': False,
'auto_install': True,
'price': 0.0,
'currency': 'EUR',
'license': 'OPL-1',
}
21 changes: 21 additions & 0 deletions viin_brand_calendar/i18n/vi_VN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * viin_brand_calendar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-15 06:11+0000\n"
"PO-Revision-Date: 2023-06-15 06:11+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: viin_brand_calendar
#: model_terms:ir.ui.view,arch_db:viin_brand_calendar.view_calendar_event_form
msgid "<span> Add Viindoo meeting</span>"
msgstr ""
21 changes: 21 additions & 0 deletions viin_brand_calendar/i18n/viin_brand_calendar.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * viin_brand_calendar
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-15 06:10+0000\n"
"PO-Revision-Date: 2023-06-15 06:10+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: viin_brand_calendar
#: model_terms:ir.ui.view,arch_db:viin_brand_calendar.view_calendar_event_form
msgid "<span> Add Viindoo meeting</span>"
msgstr "<span> Thêm cuộc họp Viindoo</span>"
13 changes: 13 additions & 0 deletions viin_brand_calendar/views/calendar_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<odoo>
<record id="view_calendar_event_form" model="ir.ui.view">
<field name="name">calendar.event.form</field>
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_form" />
<field name="arch" type="xml">
<xpath expr="//span[text()[contains(., 'Odoo')]]" position="replace">
<span> Add Viindoo meeting</span>
</xpath>
</field>
</record>
</odoo>
Empty file.
22 changes: 22 additions & 0 deletions viin_brand_calendar/wizard/calendar_provider_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>

<odoo>
<record id="calendar_provider_config_view_form" model="ir.ui.view">
<field name="name">calendar.provider.config.view.form</field>
<field name="model">calendar.provider.config</field>
<field name="inherit_id" ref="calendar.calendar_provider_config_view_form" />
<field name="arch" type="xml">
<!--Todo: replace with viindoo's link when available -->
<xpath
expr="//a[@href='https://www.odoo.com/documentation/16.0/applications/productivity/calendar/google.html']"
position="attributes">
<attribute name="href">https://www.odoo.com/documentation/16.0/applications/productivity/calendar/google.html</attribute>
</xpath>
<xpath
expr="//a[@href='https://www.odoo.com/documentation/16.0/applications/productivity/calendar/outlook.html']"
position="attributes">
<attribute name="href">https://www.odoo.com/documentation/16.0/applications/productivity/calendar/google.html</attribute>
</xpath>
</field>
</record>
</odoo>