Skip to content

Commit

Permalink
Merge PR #349 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by remytms
  • Loading branch information
github-grap-bot committed Jan 15, 2025
2 parents 193f506 + 73a8d1c commit 09a2850
Show file tree
Hide file tree
Showing 10 changed files with 535 additions and 0 deletions.
63 changes: 63 additions & 0 deletions account_move_payment_mode_sepa/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
==============================
Account Move Payment Mode SEPA
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d5514507c207937042ea64484cf364dd8c11232d97806933a51e12dcf7c534f9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-coopiteasy%2Faddons-lightgray.png?logo=github
:target: https://github.com/coopiteasy/addons/tree/16.0/account_move_payment_mode_sepa
:alt: coopiteasy/addons

|badge1| |badge2| |badge3|

Adapt the invoice pdf reports for invoices with SEPA direct debit payment mode.

**Table of contents**

.. contents::
:local:

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

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

* Coop IT Easy SC

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

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

Current maintainer:

|maintainer-victor-champonnois|

This module is part of the `coopiteasy/addons <https://github.com/coopiteasy/addons/tree/16.0/account_move_payment_mode_sepa>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions account_move_payment_mode_sepa/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions account_move_payment_mode_sepa/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Account Move Payment Mode SEPA",
"version": "16.0.0.1.0",
"category": "Banking addons",
"website": "https://github.com/coopiteasy/addons",
"author": "Coop IT Easy SC",
"maintainers": ["victor-champonnois"],
"license": "AGPL-3",
"application": False,
"depends": [
"account_banking_sepa_direct_debit",
],
"excludes": [],
"data": ["views/report_invoice_document.xml"],
"assets": {},
"demo": [],
"qweb": [],
}
1 change: 1 addition & 0 deletions account_move_payment_mode_sepa/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
18 changes: 18 additions & 0 deletions account_move_payment_mode_sepa/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from odoo import api, fields, models


class AccountMove(models.Model):
_inherit = "account.move"

is_sepa_payment = fields.Boolean(
compute="_compute_is_sepa_payment", store=True, readonly="True", default=False
)

@api.depends("payment_mode_id.payment_method_id")
def _compute_is_sepa_payment(self):
for move in self:
move.is_sepa_payment = False
if move.payment_mode_id.payment_method_id == self.env.ref(
"account_banking_sepa_direct_debit.sepa_direct_debit"
):
move.is_sepa_payment = True
1 change: 1 addition & 0 deletions account_move_payment_mode_sepa/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adapt the invoice pdf reports for invoices with SEPA direct debit payment mode.
Loading

0 comments on commit 09a2850

Please sign in to comment.