From 468079c8b509a50082ecbb9242eeb75d2ded5804 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Mon, 23 Jun 2025 15:53:01 +0200 Subject: [PATCH 1/2] [ADD] account_invoice_overdue_crm_team --- account_invoice_overdue_crm_team/README.rst | 87 ++++ account_invoice_overdue_crm_team/__init__.py | 1 + .../__manifest__.py | 22 + .../i18n/account_invoice_overdue_crm_team.pot | 41 ++ account_invoice_overdue_crm_team/i18n/fr.po | 41 ++ .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 3 + .../static/description/index.html | 426 ++++++++++++++++++ .../wizard/__init__.py | 1 + .../wizard/overdue_reminder_wizard.py | 17 + .../wizard/overdue_reminder_wizard_view.xml | 21 + 11 files changed, 662 insertions(+) create mode 100644 account_invoice_overdue_crm_team/README.rst create mode 100644 account_invoice_overdue_crm_team/__init__.py create mode 100644 account_invoice_overdue_crm_team/__manifest__.py create mode 100644 account_invoice_overdue_crm_team/i18n/account_invoice_overdue_crm_team.pot create mode 100644 account_invoice_overdue_crm_team/i18n/fr.po create mode 100644 account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst create mode 100644 account_invoice_overdue_crm_team/readme/DESCRIPTION.rst create mode 100644 account_invoice_overdue_crm_team/static/description/index.html create mode 100644 account_invoice_overdue_crm_team/wizard/__init__.py create mode 100644 account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard.py create mode 100644 account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml diff --git a/account_invoice_overdue_crm_team/README.rst b/account_invoice_overdue_crm_team/README.rst new file mode 100644 index 000000000..8019c1be2 --- /dev/null +++ b/account_invoice_overdue_crm_team/README.rst @@ -0,0 +1,87 @@ +================================ +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/14.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-14-0/credit-control-14-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=14.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..577ee13df --- /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": "14.0.0.1.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/readme/CONTRIBUTORS.rst b/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..342967077 --- /dev/null +++ b/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Mathieu Delva + diff --git a/account_invoice_overdue_crm_team/readme/DESCRIPTION.rst b/account_invoice_overdue_crm_team/readme/DESCRIPTION.rst new file mode 100644 index 000000000..ceb1f2b8e --- /dev/null +++ b/account_invoice_overdue_crm_team/readme/DESCRIPTION.rst @@ -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..1eef2616b --- /dev/null +++ b/account_invoice_overdue_crm_team/static/description/index.html @@ -0,0 +1,426 @@ + + + + + +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..f76e11e64 --- /dev/null +++ b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml @@ -0,0 +1,21 @@ + + + + + overdue.reminder.start.form + overdue.reminder.start + + + + + + + [('sale_team_id', '=', team_id)] + + + + + From ff31438515682cbab74a372688b2eee7d69bf7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Mombereau?= Date: Mon, 19 Jan 2026 16:29:27 -0300 Subject: [PATCH 2/2] [IMP] account_invoice_overdue_crm_team: pre-commit auto fixes --- account_invoice_overdue_crm_team/README.rst | 25 +++++++++---------- .../__manifest__.py | 2 +- .../pyproject.toml | 3 +++ .../readme/CONTRIBUTORS.md | 1 + .../readme/CONTRIBUTORS.rst | 2 -- .../readme/DESCRIPTION.md | 3 +++ .../readme/DESCRIPTION.rst | 3 --- .../static/description/index.html | 11 ++++---- .../wizard/overdue_reminder_wizard_view.xml | 2 -- 9 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 account_invoice_overdue_crm_team/pyproject.toml create mode 100644 account_invoice_overdue_crm_team/readme/CONTRIBUTORS.md delete mode 100644 account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst create mode 100644 account_invoice_overdue_crm_team/readme/DESCRIPTION.md delete mode 100644 account_invoice_overdue_crm_team/readme/DESCRIPTION.rst diff --git a/account_invoice_overdue_crm_team/README.rst b/account_invoice_overdue_crm_team/README.rst index 8019c1be2..a759a0344 100644 --- a/account_invoice_overdue_crm_team/README.rst +++ b/account_invoice_overdue_crm_team/README.rst @@ -17,20 +17,20 @@ Account Invoice Overdue Crm Team :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/14.0/account_invoice_overdue_crm_team + :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-14-0/credit-control-14-0-account_invoice_overdue_crm_team + :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=14.0 + :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. - +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** @@ -43,7 +43,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -51,18 +51,17 @@ Credits ======= Authors -~~~~~~~ +------- * Akretion Contributors -~~~~~~~~~~~~ - -* Mathieu Delva +------------ +- Mathieu Delva Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -82,6 +81,6 @@ Current `maintainer `__: |maintainer-mathieu-delva| -This module is part of the `OCA/credit-control `_ project on GitHub. +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/__manifest__.py b/account_invoice_overdue_crm_team/__manifest__.py index 577ee13df..287f528da 100644 --- a/account_invoice_overdue_crm_team/__manifest__.py +++ b/account_invoice_overdue_crm_team/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Account Invoice Overdue Crm Team", "summary": "Account Invoice Overdue Crm Team", - "version": "14.0.0.1.0", + "version": "18.0.0.0.0", "category": "Accounting", "license": "AGPL-3", "author": "Akretion,Odoo Community Association (OCA)", 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/CONTRIBUTORS.rst b/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst deleted file mode 100644 index 342967077..000000000 --- a/account_invoice_overdue_crm_team/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,2 +0,0 @@ -* 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/readme/DESCRIPTION.rst b/account_invoice_overdue_crm_team/readme/DESCRIPTION.rst deleted file mode 100644 index ceb1f2b8e..000000000 --- a/account_invoice_overdue_crm_team/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -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 index 1eef2616b..0c62ea56b 100644 --- a/account_invoice_overdue_crm_team/static/description/index.html +++ b/account_invoice_overdue_crm_team/static/description/index.html @@ -369,9 +369,10 @@

Account Invoice Overdue Crm Team

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:a9c207a89eee428daacf868176690aa0731ceea20fac09f8fe50055face57cb8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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.

+

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

    @@ -389,7 +390,7 @@

    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.

    +feedback.

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

@@ -417,7 +418,7 @@

Maintainers

promote its widespread use.

Current maintainer:

mathieu-delva

-

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

+

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/overdue_reminder_wizard_view.xml b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml index f76e11e64..9545a7932 100644 --- a/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml +++ b/account_invoice_overdue_crm_team/wizard/overdue_reminder_wizard_view.xml @@ -1,6 +1,5 @@ - overdue.reminder.start.form overdue.reminder.start @@ -17,5 +16,4 @@ -