diff --git a/account_invoice_overdue_crm_team/README.rst b/account_invoice_overdue_crm_team/README.rst new file mode 100644 index 000000000..a759a0344 --- /dev/null +++ b/account_invoice_overdue_crm_team/README.rst @@ -0,0 +1,86 @@ +================================ +Account Invoice Overdue Crm Team +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a9c207a89eee428daacf868176690aa0731ceea20fac09f8fe50055face57cb8 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcredit--control-lightgray.png?logo=github + :target: https://github.com/OCA/credit-control/tree/18.0/account_invoice_overdue_crm_team + :alt: OCA/credit-control +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/credit-control-18-0/credit-control-18-0-account_invoice_overdue_crm_team + :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/credit-control&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the team_id field to the overdue_reminder wizard. This +addition allows you to retrieve only invoices that have the value of +this field. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Akretion + +Contributors +------------ + +- Mathieu Delva + +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-mathieu-delva| image:: https://github.com/mathieu-delva.png?size=40px + :target: https://github.com/mathieu-delva + :alt: mathieu-delva + +Current `maintainer `__: + +|maintainer-mathieu-delva| + +This module is part of the `OCA/credit-control `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_invoice_overdue_crm_team/__init__.py b/account_invoice_overdue_crm_team/__init__.py new file mode 100644 index 000000000..40272379f --- /dev/null +++ b/account_invoice_overdue_crm_team/__init__.py @@ -0,0 +1 @@ +from . import wizard diff --git a/account_invoice_overdue_crm_team/__manifest__.py b/account_invoice_overdue_crm_team/__manifest__.py new file mode 100644 index 000000000..287f528da --- /dev/null +++ b/account_invoice_overdue_crm_team/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2025 Akretion (http://www.akretion.com). +# @author Mathieu Delva +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Invoice Overdue Crm Team", + "summary": "Account Invoice Overdue Crm Team", + "version": "18.0.0.0.0", + "category": "Accounting", + "license": "AGPL-3", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["mathieu-delva"], + "website": "https://github.com/OCA/credit-control", + "application": True, + "installable": True, + "external_dependencies": {"python": [], "bin": []}, + "depends": ["account_invoice_overdue_reminder"], + "data": [ + "wizard/overdue_reminder_wizard_view.xml", + ], + "demo": [], +} diff --git a/account_invoice_overdue_crm_team/i18n/account_invoice_overdue_crm_team.pot b/account_invoice_overdue_crm_team/i18n/account_invoice_overdue_crm_team.pot new file mode 100644 index 000000000..8cc7137fd --- /dev/null +++ b/account_invoice_overdue_crm_team/i18n/account_invoice_overdue_crm_team.pot @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_overdue_crm_team +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-06-23 13:44+0000\n" +"PO-Revision-Date: 2025-06-23 13:44+0000\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: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__display_name +msgid "Display Name" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__id +msgid "ID" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__team_id +msgid "Team" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model,name:account_invoice_overdue_crm_team.model_overdue_reminder_start +msgid "Wizard to reminder overdue customer invoice" +msgstr "" diff --git a/account_invoice_overdue_crm_team/i18n/fr.po b/account_invoice_overdue_crm_team/i18n/fr.po new file mode 100644 index 000000000..f1a159eb1 --- /dev/null +++ b/account_invoice_overdue_crm_team/i18n/fr.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_overdue_crm_team +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-06-23 13:44+0000\n" +"PO-Revision-Date: 2025-06-23 13:44+0000\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: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__display_name +msgid "Display Name" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__id +msgid "ID" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model.fields,field_description:account_invoice_overdue_crm_team.field_overdue_reminder_start__team_id +msgid "Team" +msgstr "Equipe commerciale" + +#. module: account_invoice_overdue_crm_team +#: model:ir.model,name:account_invoice_overdue_crm_team.model_overdue_reminder_start +msgid "Wizard to reminder overdue customer invoice" +msgstr "" diff --git a/account_invoice_overdue_crm_team/pyproject.toml b/account_invoice_overdue_crm_team/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_invoice_overdue_crm_team/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.md b/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..5edadda11 --- /dev/null +++ b/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Mathieu Delva \ diff --git a/account_invoice_overdue_crm_team/readme/DESCRIPTION.md b/account_invoice_overdue_crm_team/readme/DESCRIPTION.md new file mode 100644 index 000000000..91ecf1a3b --- /dev/null +++ b/account_invoice_overdue_crm_team/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module adds the team_id field to the overdue_reminder wizard. This +addition allows you to retrieve only invoices that have the value of +this field. diff --git a/account_invoice_overdue_crm_team/static/description/index.html b/account_invoice_overdue_crm_team/static/description/index.html new file mode 100644 index 000000000..0c62ea56b --- /dev/null +++ b/account_invoice_overdue_crm_team/static/description/index.html @@ -0,0 +1,427 @@ + + + + + +Account Invoice Overdue Crm Team + + + +
+

Account Invoice Overdue Crm Team

+ + +

Beta License: AGPL-3 OCA/credit-control Translate me on Weblate Try me on Runboat

+

This module adds the team_id field to the overdue_reminder wizard. This +addition allows you to retrieve only invoices that have the value of +this field.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

mathieu-delva

+

This module is part of the OCA/credit-control project on GitHub.

+

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

+
+
+
+ + diff --git a/account_invoice_overdue_crm_team/wizard/__init__.py b/account_invoice_overdue_crm_team/wizard/__init__.py new file mode 100644 index 000000000..62b5c3a6f --- /dev/null +++ b/account_invoice_overdue_crm_team/wizard/__init__.py @@ -0,0 +1 @@ +from . import overdue_reminder_wizard diff --git a/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard.py new file mode 100644 index 000000000..a8936bd20 --- /dev/null +++ b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard.py @@ -0,0 +1,17 @@ +# Copyright 2025 Akretion France (http://www.akretion.com/) +# @author: Mathieu Delva +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class OverdueReminderStart(models.TransientModel): + _inherit = "overdue.reminder.start" + + team_id = fields.Many2one("crm.team") + + def _prepare_base_domain(self): + res = super()._prepare_base_domain() + if self.team_id: + res.append(("team_id", "=", self.team_id.id)) + return res diff --git a/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml new file mode 100644 index 000000000..9545a7932 --- /dev/null +++ b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml @@ -0,0 +1,19 @@ + + + + overdue.reminder.start.form + overdue.reminder.start + + + + + + + [('sale_team_id', '=', team_id)] + + + +