Skip to content
Merged
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
92 changes: 92 additions & 0 deletions res_company_mastodon_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
=======================
Social Media - Mastodon
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a600c68275a07dc422f2b4886ed92636c84531911f0dd567e59588f836841531
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/18.0/res_company_mastodon_link
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-res_company_mastodon_link
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a new "Mastodon URL" field, at company level.

|res_company_form|

Mastodon is a decentralized social network developed in Open Source.
More information at https://joinmastodon.org/.

.. |res_company_form| image:: https://raw.githubusercontent.com/OCA/social/18.0/res_company_mastodon_link/static/description/res_company_form.png

**Table of contents**

.. contents::
:local:

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

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

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* GRAP

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

- Sylvain LE GAL
<`https://twitter.com/legalsylvain\\> <https://twitter.com/legalsylvain\>>`__

Maintainers
-----------

This module is maintained by the OCA.

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

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.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/social <https://github.com/OCA/social/tree/18.0/res_company_mastodon_link>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions res_company_mastodon_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions res_company_mastodon_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2025 - Today: Sylvain LE GAL (http://www.grap.coop)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Social Media - Mastodon",
"summary": "Add mastodon url at company model",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "GRAP, Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/social",
"installable": True,
"depends": ["social_media"],
"data": ["views/view_res_company.xml"],
"demo": ["demo/demo_res_company.xml"],
}
10 changes: 10 additions & 0 deletions res_company_mastodon_link/demo/demo_res_company.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2025 - Today: Sylvain LE GAL (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="base.main_company" model="res.company">
<field name="social_mastodon">https://pouet.chapril.org/@oca_france</field>
</record>
</odoo>
27 changes: 27 additions & 0 deletions res_company_mastodon_link/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * res_company_mastodon_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-10 22:02+0000\n"
"PO-Revision-Date: 2025-02-10 22:02+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: res_company_mastodon_link
#: model:ir.model,name:res_company_mastodon_link.model_res_company
msgid "Companies"
msgstr "Sociétés"

#. module: res_company_mastodon_link
#: model:ir.model.fields,field_description:res_company_mastodon_link.field_res_company__social_mastodon
msgid "Mastodon Account"
msgstr "Compte Mastodon"
24 changes: 24 additions & 0 deletions res_company_mastodon_link/i18n/res_company_mastodon_link.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * res_company_mastodon_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: res_company_mastodon_link
#: model:ir.model,name:res_company_mastodon_link.model_res_company
msgid "Companies"
msgstr ""

#. module: res_company_mastodon_link
#: model:ir.model.fields,field_description:res_company_mastodon_link.field_res_company__social_mastodon
msgid "Mastodon Account"
msgstr ""
1 change: 1 addition & 0 deletions res_company_mastodon_link/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_company
10 changes: 10 additions & 0 deletions res_company_mastodon_link/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (C) 2025 - Today: Sylvain LE GAL (http://www.grap.coop)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class Company(models.Model):
_inherit = "res.company"

social_mastodon = fields.Char("Mastodon Account")
3 changes: 3 additions & 0 deletions res_company_mastodon_link/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions res_company_mastodon_link/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sylvain LE GAL \<https://twitter.com/legalsylvain\>
6 changes: 6 additions & 0 deletions res_company_mastodon_link/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This module adds a new "Mastodon URL" field, at company level.

![res_company_form](../static/description/res_company_form.png)

Mastodon is a decentralized social network developed in Open Source.
More information at <https://joinmastodon.org/>.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading