Skip to content

Commit

Permalink
Merge pull request #1338 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/bank-payment (16.0)
  • Loading branch information
bt-admin authored Feb 27, 2025
2 parents 36e2ff2 + 00a34b9 commit 228a851
Show file tree
Hide file tree
Showing 34 changed files with 345 additions and 120 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_banking_mandate](account_banking_mandate/) | 16.0.1.3.4 | | Banking mandates
[account_banking_mandate](account_banking_mandate/) | 16.0.1.3.5 | | Banking mandates
[account_banking_mandate_contact](account_banking_mandate_contact/) | 16.0.1.0.3 | | Assign specific banking mandates in contact level
[account_banking_mandate_sale](account_banking_mandate_sale/) | 16.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Adds mandates on sale orders
[account_banking_mandate_sale_contact](account_banking_mandate_sale_contact/) | 16.0.1.0.1 | [![tisho99](https://github.com/tisho99.png?size=30px)](https://github.com/tisho99) | Add a specific contact mandate to sale orders
[account_banking_pain_base](account_banking_pain_base/) | 16.0.1.2.2 | | Base module for PAIN file generation
[account_banking_sepa_credit_transfer](account_banking_sepa_credit_transfer/) | 16.0.1.1.5 | | Create SEPA XML files for Credit Transfers
[account_banking_sepa_direct_debit](account_banking_sepa_direct_debit/) | 16.0.1.4.4 | | Create SEPA files for Direct Debit
[account_banking_sepa_credit_transfer](account_banking_sepa_credit_transfer/) | 16.0.1.1.6 | | Create SEPA XML files for Credit Transfers
[account_banking_sepa_direct_debit](account_banking_sepa_direct_debit/) | 16.0.1.4.5 | | Create SEPA files for Direct Debit
[account_payment_method_fs_storage](account_payment_method_fs_storage/) | 16.0.1.0.2 | | Add the possibility to specify on the payment method, a storage where files generated will be pushed to upon payment
[account_payment_mode](account_payment_mode/) | 16.0.1.2.2 | | Account Payment Mode
[account_payment_order](account_payment_order/) | 16.0.1.13.0 | | Account Payment Order
[account_payment_order](account_payment_order/) | 16.0.1.13.1 | | Account Payment Order
[account_payment_order_grouped_output](account_payment_order_grouped_output/) | 16.0.1.0.3 | | Account Payment Order - Generate grouped moves
[account_payment_order_notification](account_payment_order_notification/) | 16.0.1.0.2 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Account Payment Order Notification
[account_payment_order_return](account_payment_order_return/) | 16.0.1.0.1 | | Account Payment Order Return
[account_payment_order_tier_validation](account_payment_order_tier_validation/) | 16.0.1.0.0 | [![marcelsavegnago](https://github.com/marcelsavegnago.png?size=30px)](https://github.com/marcelsavegnago) | Extends the functionality of Payment Orders to support a tier validation process.
[account_payment_order_vendor_email](account_payment_order_vendor_email/) | 16.0.1.0.0 | [![ursais](https://github.com/ursais.png?size=30px)](https://github.com/ursais) | Account Payment Order Email
[account_payment_partner](account_payment_partner/) | 16.0.1.2.6 | | Adds payment mode on partners and invoices
[account_payment_purchase](account_payment_purchase/) | 16.0.2.0.4 | | Adds Bank Account and Payment Mode on Purchase Orders
[account_payment_partner](account_payment_partner/) | 16.0.1.2.7 | | Adds payment mode on partners and invoices
[account_payment_purchase](account_payment_purchase/) | 16.0.2.0.5 | | Adds Bank Account and Payment Mode on Purchase Orders
[account_payment_purchase_stock](account_payment_purchase_stock/) | 16.0.1.0.1 | | Integrate Account Payment Purchase with Stock
[account_payment_sale](account_payment_sale/) | 16.0.1.0.5 | | Adds payment mode on sale orders
[account_payment_sale](account_payment_sale/) | 16.0.1.0.7 | | Adds payment mode on sale orders

[//]: # (end addons)

Expand Down
2 changes: 1 addition & 1 deletion account_banking_mandate/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Account Banking Mandate
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3601215eba30294d27cc9f7354971231ba35c0590892640eabdc73468fe40405
!! source digest: sha256:d9ec3039f02e9ffcb38fcb853907a3edf85991a280bd5c9c68745cc7bf9483ac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
2 changes: 1 addition & 1 deletion account_banking_mandate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Account Banking Mandate",
"summary": "Banking mandates",
"version": "16.0.1.3.4",
"version": "16.0.1.3.5",
"development_status": "Production/Stable",
"license": "AGPL-3",
"author": "Compassion CH, "
Expand Down
2 changes: 1 addition & 1 deletion account_banking_mandate/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Account Banking Mandate</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3601215eba30294d27cc9f7354971231ba35c0590892640eabdc73468fe40405
!! source digest: sha256:d9ec3039f02e9ffcb38fcb853907a3edf85991a280bd5c9c68745cc7bf9483ac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-payment/tree/16.0/account_banking_mandate"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_mandate"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a generic model for banking mandates.
Expand Down
8 changes: 7 additions & 1 deletion account_banking_mandate/tests/test_invoice_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,18 @@ def setUpClass(cls):
)
.id
)
cls.product = cls.env["product.product"].create(
{
"name": "Test product",
"type": "service",
}
)
invoice_vals = [
(
0,
0,
{
"product_id": cls.env.ref("product.product_product_4").id,
"product_id": cls.product.id,
"quantity": 1.0,
"account_id": invoice_line_account,
"price_unit": 200.00,
Expand Down
61 changes: 44 additions & 17 deletions account_banking_mandate/tests/test_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,29 @@ def setUpClass(cls):
coa.try_loading(company=cls.company, install_demo=False)
cls.company_2 = cls.env["res.company"].create({"name": "Company 2"})
cls.company_2.partner_id.company_id = cls.company_2.id
cls.bank_account = cls.env.ref("account_payment_mode.res_partner_12_iban")
cls.bank_account.partner_id.company_id = cls.company.id
cls.partner = cls.env["res.partner"].create(
{
"name": "Test Partner",
"company_id": cls.company.id,
}
)
cls.bank = cls.env["res.bank"].create(
{
"name": "Fiducial Banque",
"bic": "FIDCFR21XXX",
"street": "38 rue Sergent Michel Berthet",
"zip": "69009",
"city": "Lyon",
"country": cls.env.ref("base.fr").id,
}
)
cls.bank_account = cls.env["res.partner.bank"].create(
{
"partner_id": cls.partner.id,
"bank_id": cls.bank.id,
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
}
)
cls.mandate = cls.env["account.banking.mandate"].create(
{
"partner_bank_id": cls.bank_account.id,
Expand Down Expand Up @@ -64,10 +85,22 @@ def test_mandate_04(self):
self.mandate.cancel()

def test_onchange_methods(self):
bank_account_2 = self.env.ref("account_payment_mode.res_partner_2_iban")
partner = self.env["res.partner"].create(
{
"name": "Test Partner 2",
"company_id": self.company.id,
}
)
bank_account_2 = self.env["res.partner.bank"].create(
{
"partner_id": partner.id,
"bank_id": self.bank.id,
"acc_number": "FR66 1212 1212 1212 1212 1212 121",
}
)
self.mandate.partner_bank_id = bank_account_2
self.mandate.mandate_partner_bank_change()
self.assertEqual(self.mandate.partner_id, bank_account_2.partner_id)
self.assertEqual(self.mandate.partner_id, partner)

def test_constrains_01(self):
self.mandate.validate()
Expand Down Expand Up @@ -111,10 +144,9 @@ def test_mandate_reference_01(self):
Test case: create a mandate with no reference
Expected result: the reference of the created mandate is not empty
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
}
Expand All @@ -126,10 +158,9 @@ def test_mandate_reference_02(self):
Test case: create a mandate with "ref01" as reference
Expected result: the reference of the created mandate is "ref01"
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
"unique_mandate_reference": "ref01",
Expand All @@ -142,10 +173,9 @@ def test_mandate_reference_03(self):
Test case: create a mandate with "TEST" as reference
Expected result: the reference of the created mandate is "TEST"
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
"unique_mandate_reference": "TEST",
Expand All @@ -159,10 +189,9 @@ def test_mandate_reference_04(self):
Test case: create a mandate with "/" as reference
Expected result: the reference of the created mandate is not "/"
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
"unique_mandate_reference": "/",
Expand All @@ -176,10 +205,9 @@ def test_mandate_reference_05(self):
Test case: create a mandate without reference
Expected result: the reference of the created mandate is not empty
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
}
Expand All @@ -191,10 +219,9 @@ def test_mandate_reference_06(self):
Test case: create a mandate with False as reference (empty with UX)
Expected result: the reference of the created mandate is not False
"""
bank_account = self.env.ref("account_payment_mode.res_partner_12_iban")
mandate_1 = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
"unique_mandate_reference": False,
Expand All @@ -203,7 +230,7 @@ def test_mandate_reference_06(self):
self.assertTrue(mandate_1.unique_mandate_reference)
mandate_2 = self.env["account.banking.mandate"].create(
{
"partner_bank_id": bank_account.id,
"partner_bank_id": self.bank_account.id,
"signature_date": "2015-01-01",
"company_id": self.company.id,
"unique_mandate_reference": "",
Expand Down
2 changes: 1 addition & 1 deletion account_banking_sepa_credit_transfer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Account Banking SEPA Credit Transfer
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:47d7d0b0421ca921979947406ff2bbcaaf568fe30b6cd096ba8bdc550448b9ee
!! source digest: sha256:be184fe8c9f25d0db6aae09f3f2c96019b6662c5083b87338ed12dafbc66af88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion account_banking_sepa_credit_transfer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Account Banking SEPA Credit Transfer",
"summary": "Create SEPA XML files for Credit Transfers",
"version": "16.0.1.1.5",
"version": "16.0.1.1.6",
"license": "AGPL-3",
"author": "Akretion, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/bank-payment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Account Banking SEPA Credit Transfer</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:47d7d0b0421ca921979947406ff2bbcaaf568fe30b6cd096ba8bdc550448b9ee
!! source digest: sha256:be184fe8c9f25d0db6aae09f3f2c96019b6662c5083b87338ed12dafbc66af88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-payment/tree/16.0/account_banking_sepa_credit_transfer"><img alt="OCA/bank-payment" src="https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Module to export payment orders in SEPA XML file format.</p>
Expand Down
Loading

0 comments on commit 228a851

Please sign in to comment.