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

[13.0][MIG] partner_socialmedia: migrate partner_social module #1284

Closed
wants to merge 2 commits into from
Closed
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
76 changes: 76 additions & 0 deletions partner_socialmedia/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

====================
Partner Social Media
====================

This module extends the contact management functionality. It allows recording
of a partner's social media profiles.

Installation
============

There are no special instructions regarding installation.

Configuration
=============

No configuration is needed.

Usage
=====

New item for 'Social Media' can be edited on the 'Personal Information' tab of
the partner contact form.

For further information, please visit:

* https://www.odoo.com/forum/help-1
* https://github.com/OCA/partner-contact/

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/10.0

Known issues / Roadmap
======================

* No known issues.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
partner-contact/issues/new?body=module:%20
partner_contact_socialmedia%0Aversion:%20
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Contributors
------------

* Stefan Becker <s.becker@humanilog.org>
* David Pérez <david@closemarketing.es>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.
2 changes: 2 additions & 0 deletions partner_socialmedia/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
14 changes: 14 additions & 0 deletions partner_socialmedia/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2018 Humanitarian Logistics Organisation e.V. - Stefan Becker
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Partner Socialmedia",
"summary": "Add social media fields to contacts",
"version": "13.0.1.0.0",
"author": "humanilog, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact",
"category": "CRM",
"license": "AGPL-3",
"installable": True,
"depends": ["base"],
"data": ["views/res_partner_view.xml"],
}
79 changes: 79 additions & 0 deletions partner_socialmedia/i18n/partner_socialmedia.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_socialmedia
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \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: partner_socialmedia
#: model:ir.model,name:partner_socialmedia.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__discord
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__discord
msgid "Discord"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__facebook
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__facebook
msgid "Facebook"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__forum
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__forum
msgid "Forum"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__linkedin
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__linkedin
msgid "Linkedin"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__mastodon
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__mastodon
msgid "Mastodon"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__reddit
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__reddit
msgid "Reddit"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__skype
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__skype
msgid "Skype"
msgstr ""

#. module: partner_socialmedia
#: model_terms:ir.ui.view,arch_db:partner_socialmedia.view_partner_form_socialmedia
msgid "Social Media"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__twitter
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__twitter
msgid "Twitter"
msgstr ""

#. module: partner_socialmedia
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_partner__youtube
#: model:ir.model.fields,field_description:partner_socialmedia.field_res_users__youtube
msgid "Youtube"
msgstr ""

2 changes: 2 additions & 0 deletions partner_socialmedia/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import res_partner
20 changes: 20 additions & 0 deletions partner_socialmedia/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 Humanitarian Logistics Organisation e.V. - Stefan Becker
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResPartner(models.Model):
"""Add social media fields"""

_inherit = "res.partner"

facebook = fields.Char()
twitter = fields.Char()
skype = fields.Char()
linkedin = fields.Char()
mastodon = fields.Char()
discord = fields.Char()
reddit = fields.Char()
forum = fields.Char()
youtube = fields.Char()
Binary file added partner_socialmedia/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions partner_socialmedia/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_partner_form_socialmedia" model="ir.ui.view">
<field name="name">res.partner.form</field>
<field name="model">res.partner</field>
<field eval="1" name="priority" />
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="socialmedia" string="Social Media">
<group>
<field name="facebook" widget="url" />
<field name="twitter" widget="url" />
<field name="skype" widget="url" />
<field name="linkedin" widget="url" />
<field name="mastodon" widget="url" />
<field name="forum" widget="url" />
<field name="reddit" widget="url" />
<field name="youtube" widget="url" />
<field name="discord" widget="url" />
</group>
</page>
</xpath>
</field>
</record>
</odoo>
1 change: 1 addition & 0 deletions setup/partner_socialmedia/odoo/addons/partner_socialmedia
6 changes: 6 additions & 0 deletions setup/partner_socialmedia/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)