odoo-addon-mail-message-destiny-link-template


Nameodoo-addon-mail-message-destiny-link-template JSON
Version 16.0.1.0.0.4 PyPI version JSON
download
home_pagehttps://github.com/OCA/server-ux
SummaryMail template to show destiny records in chatter.
upload_time2024-07-09 04:30:35
maintainerNone
docs_urlNone
authorModuon, Odoo Community Association (OCA)
requires_python>=3.10
licenseLGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==================================
Mail Message Destiny Link Template
==================================

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

.. |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-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
    :target: https://github.com/OCA/server-ux/tree/16.0/mail_message_destiny_link_template
    :alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-mail_message_destiny_link_template
    :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/server-ux&target_branch=16.0
    :alt: Try me on Runboat

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

This module provides an email template to show which target records have
been modified by a source record.

An email template already exists to show which source record a target
record has been created or modified from.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

This module has been created to obtain a reverse template of
``message_origin_link`` (which allows you to link the origin record in
the chatter).

Usage
=====

To use this module, make sure that the template you are going to write
the message inherits from ``mail.thread``.

You can call the template like this:

.. code:: python

   def custom_function(self):
       """Adds a chatter message to origin and destiny records"""
       for record in self:
           destiny_records = record._create_destiny_records()  # A bunch of Destiny Records
           mt_note_subtype_id = self.env['ir.model.data']._xmlid_to_res_id('mail.mt_note')

           # Add note to chatter that indicates destiny records
           record.message_post_with_view(
               'mail_message_destiny_link_template.message_destiny_link',
               values={'self': record, 'destiny': destiny_records, "edit": False or True},
               subtype_id=mt_note_subtype_id,
           )

           # Origin Link common usage to show differences
           for destiny_record in destiny_records:
               destiny_record.message_post_with_view(
                   'mail.message_origin_link',
                   values={'self': destiny_record, 'origin': record, "edit": False or True},
                   subtype_id=mt_note_subtype_id,
               )

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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/server-ux/issues/new?body=module:%20mail_message_destiny_link_template%0Aversion:%2016.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
-------

* Moduon

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

-  Eduardo de Miguel (``Moduon <https://www.moduon.team/>``\ \_\_)

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-Shide| image:: https://github.com/Shide.png?size=40px
    :target: https://github.com/Shide
    :alt: Shide
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
    :target: https://github.com/rafaelbn
    :alt: rafaelbn

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

|maintainer-Shide| |maintainer-rafaelbn| 

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/16.0/mail_message_destiny_link_template>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/server-ux",
    "name": "odoo-addon-mail-message-destiny-link-template",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Moduon, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "==================================\nMail Message Destiny Link Template\n==================================\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:4c114514d360c8ea3e15836148b4a489108f1251a740c83006324ae02281a1de\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n    :alt: License: LGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github\n    :target: https://github.com/OCA/server-ux/tree/16.0/mail_message_destiny_link_template\n    :alt: OCA/server-ux\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-mail_message_destiny_link_template\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=16.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module provides an email template to show which target records have\nbeen modified by a source record.\n\nAn email template already exists to show which source record a target\nrecord has been created or modified from.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nUse Cases / Context\n===================\n\nThis module has been created to obtain a reverse template of\n``message_origin_link`` (which allows you to link the origin record in\nthe chatter).\n\nUsage\n=====\n\nTo use this module, make sure that the template you are going to write\nthe message inherits from ``mail.thread``.\n\nYou can call the template like this:\n\n.. code:: python\n\n   def custom_function(self):\n       \"\"\"Adds a chatter message to origin and destiny records\"\"\"\n       for record in self:\n           destiny_records = record._create_destiny_records()  # A bunch of Destiny Records\n           mt_note_subtype_id = self.env['ir.model.data']._xmlid_to_res_id('mail.mt_note')\n\n           # Add note to chatter that indicates destiny records\n           record.message_post_with_view(\n               'mail_message_destiny_link_template.message_destiny_link',\n               values={'self': record, 'destiny': destiny_records, \"edit\": False or True},\n               subtype_id=mt_note_subtype_id,\n           )\n\n           # Origin Link common usage to show differences\n           for destiny_record in destiny_records:\n               destiny_record.message_post_with_view(\n                   'mail.message_origin_link',\n                   values={'self': destiny_record, 'origin': record, \"edit\": False or True},\n                   subtype_id=mt_note_subtype_id,\n               )\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20mail_message_destiny_link_template%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n-------\n\n* Moduon\n\nContributors\n------------\n\n-  Eduardo de Miguel (``Moduon <https://www.moduon.team/>``\\ \\_\\_)\n\nMaintainers\n-----------\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px\n    :target: https://github.com/Shide\n    :alt: Shide\n.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px\n    :target: https://github.com/rafaelbn\n    :alt: rafaelbn\n\nCurrent `maintainers <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-Shide| |maintainer-rafaelbn| \n\nThis module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/16.0/mail_message_destiny_link_template>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n",
    "bugtrack_url": null,
    "license": "LGPL-3",
    "summary": "Mail template to show destiny records in chatter.",
    "version": "16.0.1.0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/OCA/server-ux"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4eed0a9d6bc34eef0f97d42162d3a4e0b7eac123ece38006e6fd50854ba5d8c",
                "md5": "102db7200d764316cc0d2c97a9f2f88e",
                "sha256": "49abed49e5c937f69a83fac20ee0471b142ba4c130d27cf5549ff3f5ea2c4b83"
            },
            "downloads": -1,
            "filename": "odoo_addon_mail_message_destiny_link_template-16.0.1.0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "102db7200d764316cc0d2c97a9f2f88e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 25250,
            "upload_time": "2024-07-09T04:30:35",
            "upload_time_iso_8601": "2024-07-09T04:30:35.629255Z",
            "url": "https://files.pythonhosted.org/packages/d4/ee/d0a9d6bc34eef0f97d42162d3a4e0b7eac123ece38006e6fd50854ba5d8c/odoo_addon_mail_message_destiny_link_template-16.0.1.0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-09 04:30:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "server-ux",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo-addon-mail-message-destiny-link-template"
}
        
Elapsed time: 0.29842s