Skip to content

Commit

Permalink
[17.0][MIG] deltatech_fix_followers
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuStefan2001 committed Mar 25, 2024
1 parent 6cef2b8 commit ec2c0f5
Show file tree
Hide file tree
Showing 10 changed files with 524 additions and 0 deletions.
65 changes: 65 additions & 0 deletions deltatech_sale_fix_followers/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
==================================
Deltatech Sale Fix Followers error
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9bab943abdabe363efefd4da605353bb519dcea5a6418625ade9efb75a8a1f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OPL--1-blue.png
:target: https://www.odoo.com/documentation/master/legal/licenses.html
:alt: License: OPL-1
.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github
:target: https://github.com/dhongu/deltatech/tree/16.0/deltatech_sale_fix_followers
:alt: dhongu/deltatech

|badge1| |badge2| |badge3|

Features:
- Fix mail_followers_mail_followers_res_partner_res_model_id_uniq error

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/dhongu/deltatech/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/dhongu/deltatech/issues/new?body=module:%20deltatech_sale_fix_followers%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
~~~~~~~

* Terrabit
* Dan Stoica

Maintainers
~~~~~~~~~~~

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

Current maintainer:

|maintainer-danila12|

This module is part of the `dhongu/deltatech <https://github.com/dhongu/deltatech/tree/16.0/deltatech_sale_fix_followers>`_ project on GitHub.

You are welcome to contribute.
4 changes: 4 additions & 0 deletions deltatech_sale_fix_followers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# © 2008-2021 Deltatech
# See README.rst file on addons root folder for license details

from . import models
16 changes: 16 additions & 0 deletions deltatech_sale_fix_followers/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# © 2008-2021 Deltatech
# See README.rst file on addons root folder for license details
{
"name": "Deltatech Sale Fix Followers error",
"summary": "Fix for mail_followers_mail_followers_res_partner_res_model_id_uniq error",
"version": "17.0.1.0.0",
"author": "Terrabit, Dan Stoica",
"website": "https://www.terrabit.ro",
"support": "[email protected]",
"category": "Sale",
"depends": ["sale"],
"license": "OPL-1",
"images": ["static/description/main_screenshot.png"],
"development_status": "Beta",
"maintainers": ["danila12"],
}
4 changes: 4 additions & 0 deletions deltatech_sale_fix_followers/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# © 2008-2021 Deltatech
# See README.rst file on addons root folder for license details

from . import mail_thread
15 changes: 15 additions & 0 deletions deltatech_sale_fix_followers/models/mail_thread.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# © 2008-2021 Deltatech
# See README.rst file on addons root folder for license details

from odoo import models
from odoo.exceptions import ValidationError


class MailThread(models.AbstractModel):
_inherit = "mail.thread"

def message_subscribe(self, partner_ids=None, subtype_ids=None):
try:
return super().message_subscribe(partner_ids=partner_ids, subtype_ids=subtype_ids)
except ValidationError:
return True
2 changes: 2 additions & 0 deletions deltatech_sale_fix_followers/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Features:
- Fix mail_followers_mail_followers_res_partner_res_model_id_uniq error
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ec2c0f5

Please sign in to comment.