diff --git a/social_media_icon_extention_tripadvisor/README.md b/social_media_icon_extention_tripadvisor/README.md new file mode 100644 index 00000000..8a5de5f4 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/README.md @@ -0,0 +1,67 @@ + +
+ + + + +Extend Social Media Links +========================= + + + + + +Currently added: + +Xing / Dribbble / Tripadvisor + +
+ +Additional Info: +---------------- + + This Addon will load the current CSS Version 4.4.0 from Fontawesome in the assets (29KB). + +Integration example: +-------------------- + + normal social icons: + + + + + + + + + the new social icons: + + + +Credits +======= + +Contributors +------------ + +* Benjamin Bachmann (benniphx@gmail.com) + +Maintainer +---------- + + +Odoo Community Association + + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. \ No newline at end of file diff --git a/social_media_icon_extention_tripadvisor/__init__.py b/social_media_icon_extention_tripadvisor/__init__.py new file mode 100644 index 00000000..e7747f1a --- /dev/null +++ b/social_media_icon_extention_tripadvisor/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from . import models diff --git a/social_media_icon_extention_tripadvisor/__openerp__.py b/social_media_icon_extention_tripadvisor/__openerp__.py new file mode 100644 index 00000000..eb41fb71 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + 'name': "Tripadvisor Social Media Icon Extension", + 'summary': """Tripadvisor Extension for the social media icons from the + odoo core""", + 'author': "bloopark systems GmbH & Co. KG, " + "Odoo Community Association (OCA)", + 'website': "http://www.bloopark.de", + 'license': 'AGPL-3', + 'category': 'Social Media', + 'version': '1.0', + + 'depends': [ + 'base', + 'website', + 'website_blog' + ], + + 'data': [ + 'views/website_templates.xml', + 'views/website_views.xml', + 'views/website_blog_template.xml', + 'views/res_config.xml', + ], +} diff --git a/social_media_icon_extention_tripadvisor/models/__init__.py b/social_media_icon_extention_tripadvisor/models/__init__.py new file mode 100644 index 00000000..cf4d9e9d --- /dev/null +++ b/social_media_icon_extention_tripadvisor/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from . import res_config +from . import website diff --git a/social_media_icon_extention_tripadvisor/models/res_config.py b/social_media_icon_extention_tripadvisor/models/res_config.py new file mode 100644 index 00000000..2a2e9cf6 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/models/res_config.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from openerp.models import TransientModel +from openerp import fields + + +class WebsiteConfigSettings(TransientModel): + + """Adds the fields for Social Media Icons.""" + + _inherit = 'website.config.settings' + + social_tripadvisor = fields.Char('Tripadvisor Account', + related='website_id.social_tripadvisor') diff --git a/social_media_icon_extention_tripadvisor/models/website.py b/social_media_icon_extention_tripadvisor/models/website.py new file mode 100644 index 00000000..9fd9fb99 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/models/website.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo, an open source suite of business apps +# This module copyright (C) 2015 bloopark systems (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from openerp.models import Model +from openerp import fields + + +class Website(Model): + + """Adds the fields for Social Media Icons.""" + + _inherit = 'website' + + social_tripadvisor = fields.Char('Tripadvisor Account') diff --git a/social_media_icon_extention_tripadvisor/static/description/blog.png b/social_media_icon_extention_tripadvisor/static/description/blog.png new file mode 100644 index 00000000..8dd88f79 Binary files /dev/null and b/social_media_icon_extention_tripadvisor/static/description/blog.png differ diff --git a/social_media_icon_extention_tripadvisor/static/description/icon.png b/social_media_icon_extention_tripadvisor/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/social_media_icon_extention_tripadvisor/static/description/icon.png differ diff --git a/social_media_icon_extention_tripadvisor/static/description/index.html b/social_media_icon_extention_tripadvisor/static/description/index.html new file mode 100644 index 00000000..52c37c01 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/static/description/index.html @@ -0,0 +1,28 @@ +
+
+
+

+ Social Media Icon Extention for +

+
+
+
+ + + +
+
+
+

+ Extend Social Media Links +

+
+
+
+ +
+
+
+
diff --git a/social_media_icon_extention_tripadvisor/static/description/settings.png b/social_media_icon_extention_tripadvisor/static/description/settings.png new file mode 100644 index 00000000..6dcf179b Binary files /dev/null and b/social_media_icon_extention_tripadvisor/static/description/settings.png differ diff --git a/social_media_icon_extention_tripadvisor/static/description/tripadvisor.jpg b/social_media_icon_extention_tripadvisor/static/description/tripadvisor.jpg new file mode 100644 index 00000000..a7e63014 Binary files /dev/null and b/social_media_icon_extention_tripadvisor/static/description/tripadvisor.jpg differ diff --git a/social_media_icon_extention_tripadvisor/static/description/webpage.png b/social_media_icon_extention_tripadvisor/static/description/webpage.png new file mode 100644 index 00000000..7b9e3c8e Binary files /dev/null and b/social_media_icon_extention_tripadvisor/static/description/webpage.png differ diff --git a/social_media_icon_extention_tripadvisor/views/res_config.xml b/social_media_icon_extention_tripadvisor/views/res_config.xml new file mode 100644 index 00000000..8963c389 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/views/res_config.xml @@ -0,0 +1,28 @@ + + + + + + Website settings + website.config.settings + + + + + + + + + + \ No newline at end of file diff --git a/social_media_icon_extention_tripadvisor/views/website_blog_template.xml b/social_media_icon_extention_tripadvisor/views/website_blog_template.xml new file mode 100644 index 00000000..0317edc2 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/views/website_blog_template.xml @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/social_media_icon_extention_tripadvisor/views/website_templates.xml b/social_media_icon_extention_tripadvisor/views/website_templates.xml new file mode 100644 index 00000000..27e385d1 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/views/website_templates.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/social_media_icon_extention_tripadvisor/views/website_views.xml b/social_media_icon_extention_tripadvisor/views/website_views.xml new file mode 100644 index 00000000..78932470 --- /dev/null +++ b/social_media_icon_extention_tripadvisor/views/website_views.xml @@ -0,0 +1,24 @@ + + + + + + website.form + website + + + + + + + + + + + + \ No newline at end of file