diff --git a/account_banking_mandate/README.rst b/account_banking_mandate/README.rst index a18f6344c..e38019de8 100644 --- a/account_banking_mandate/README.rst +++ b/account_banking_mandate/README.rst @@ -14,13 +14,13 @@ Account Banking Mandate :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github - :target: https://github.com/OCA/bank-payment/tree/15.0/account_banking_mandate + :target: https://github.com/OCA/bank-payment/tree/16.0/account_banking_mandate :alt: OCA/bank-payment .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_banking_mandate + :target: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_mandate :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/173/15.0 + :target: https://runbot.odoo-community.org/runbot/173/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -58,7 +58,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -71,6 +71,7 @@ Authors * Compassion CH * Tecnativa * Akretion +* Therp B.V. Contributors ~~~~~~~~~~~~ @@ -85,6 +86,7 @@ Contributors * Marçal Isern * Andrea Stirpe * Manuel Regidor +* Giovanni Francesco Capalbo Maintainers ~~~~~~~~~~~ @@ -99,6 +101,6 @@ 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. -This module is part of the `OCA/bank-payment `_ project on GitHub. +This module is part of the `OCA/bank-payment `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_banking_mandate/__manifest__.py b/account_banking_mandate/__manifest__.py index bd4302b5c..103407439 100644 --- a/account_banking_mandate/__manifest__.py +++ b/account_banking_mandate/__manifest__.py @@ -7,12 +7,13 @@ { "name": "Account Banking Mandate", "summary": "Banking mandates", - "version": "15.0.1.0.1", + "version": "16.0.1.0.0", "development_status": "Production/Stable", "license": "AGPL-3", "author": "Compassion CH, " "Tecnativa, " "Akretion, " + "Therp B.V., " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/bank-payment", "category": "Banking addons", @@ -24,7 +25,6 @@ "views/account_payment_line.xml", "views/res_partner_bank_view.xml", "views/res_partner.xml", - "views/bank_payment_line_view.xml", "data/mandate_reference_sequence.xml", "security/mandate_security.xml", "security/ir.model.access.csv", diff --git a/account_banking_mandate/i18n/account_banking_mandate.pot b/account_banking_mandate/i18n/account_banking_mandate.pot index 1148d87a7..5df3bd50f 100644 --- a/account_banking_mandate/i18n/account_banking_mandate.pot +++ b/account_banking_mandate/i18n/account_banking_mandate.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -91,11 +91,6 @@ msgstr "" msgid "Bank Accounts" msgstr "" -#. module: account_banking_mandate -#: model:ir.model,name:account_banking_mandate.model_bank_payment_line -msgid "Bank Payment Lines" -msgstr "" - #. module: account_banking_mandate #: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_form msgid "Banking Mandate" @@ -132,6 +127,7 @@ msgid "Cancelled" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "" @@ -140,6 +136,7 @@ msgid "" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "Cannot validate the mandate '%s' without a date of signature." @@ -185,7 +182,6 @@ msgstr "" #: model:ir.model.fields,field_description:account_banking_mandate.field_account_move__mandate_id #: model:ir.model.fields,field_description:account_banking_mandate.field_account_payment__mandate_id #: model:ir.model.fields,field_description:account_banking_mandate.field_account_payment_line__mandate_id -#: model:ir.model.fields,field_description:account_banking_mandate.field_bank_payment_line__mandate_id msgid "Direct Debit Mandate" msgstr "" @@ -273,7 +269,6 @@ msgstr "" #. module: account_banking_mandate #: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__message_needaction -#: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__message_unread msgid "If checked, new messages require your attention." msgstr "" @@ -318,11 +313,6 @@ msgstr "" msgid "Main Attachment" msgstr "" -#. module: account_banking_mandate -#: model_terms:ir.ui.view,arch_db:account_banking_mandate.bank_payment_line_tree -msgid "Mandate" -msgstr "" - #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__format msgid "Mandate Format" @@ -338,18 +328,21 @@ msgid "Mandate Required" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "Mandate should be in cancel state." msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "Mandate should be in draft or valid state." msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "Mandate should be in draft state." @@ -376,6 +369,7 @@ msgid "Messages" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_payment_line.py:0 #, python-format msgid "Missing Mandate on payment line %s" @@ -427,11 +421,6 @@ msgstr "" msgid "Number of messages with delivery error" msgstr "" -#. module: account_banking_mandate -#: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__message_unread_counter -msgid "Number of unread messages" -msgstr "" - #. module: account_banking_mandate #: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__state msgid "" @@ -461,6 +450,7 @@ msgid "Payment Methods" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #: model_terms:ir.ui.view,arch_db:account_banking_mandate.views_mandate_form_buttons #, python-format @@ -528,12 +518,14 @@ msgid "" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "The date of signature of mandate '%s' is in the future!" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_banking_mandate.py:0 #, python-format msgid "" @@ -542,6 +534,7 @@ msgid "" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_payment_line.py:0 #, python-format msgid "" @@ -550,6 +543,7 @@ msgid "" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/account_payment_line.py:0 #, python-format msgid "" @@ -579,16 +573,6 @@ msgstr "" msgid "Unique Mandate Reference" msgstr "" -#. module: account_banking_mandate -#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_unread -msgid "Unread Messages" -msgstr "" - -#. module: account_banking_mandate -#: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_unread_counter -msgid "Unread Messages Counter" -msgstr "" - #. module: account_banking_mandate #: model:ir.model.fields.selection,name:account_banking_mandate.selection__account_banking_mandate__state__valid #: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search @@ -612,6 +596,7 @@ msgid "Website communication history" msgstr "" #. module: account_banking_mandate +#. odoo-python #: code:addons/account_banking_mandate/models/res_partner_bank.py:0 #, python-format msgid "" diff --git a/account_banking_mandate/i18n/it.po b/account_banking_mandate/i18n/it.po index d4a7f6dcc..1d97628cf 100644 --- a/account_banking_mandate/i18n/it.po +++ b/account_banking_mandate/i18n/it.po @@ -9,8 +9,8 @@ msgstr "" "Project-Id-Version: bank-payment (10.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-11-21 10:17+0000\n" -"PO-Revision-Date: 2023-01-03 14:46+0000\n" -"Last-Translator: Francesco Foresti \n" +"PO-Revision-Date: 2023-04-14 14:35+0000\n" +"Last-Translator: mymage \n" "Language-Team: Italian (http://www.transifex.com/oca/OCA-bank-payment-10-0/" "language/it/)\n" "Language: it\n" @@ -222,7 +222,7 @@ msgstr "Mandato Addebito Diretto" #: model:ir.model.fields,field_description:account_banking_mandate.field_res_partner__display_name #: model:ir.model.fields,field_description:account_banking_mandate.field_res_partner_bank__display_name msgid "Display Name" -msgstr "Nome da visualizzare" +msgstr "Nome visualizzato" #. module: account_banking_mandate #: model:ir.model.fields.selection,name:account_banking_mandate.selection__account_banking_mandate__state__draft @@ -246,17 +246,17 @@ msgstr "Primo Mandato Valido" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_follower_ids msgid "Followers" -msgstr "Followers" +msgstr "Seguito da" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_channel_ids msgid "Followers (Channels)" -msgstr "Followers (Channels)" +msgstr "Seguito da (canali)" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_partner_ids msgid "Followers (Partners)" -msgstr "Followers (Partners)" +msgstr "Seguito da (partner)" #. module: account_banking_mandate #: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__activity_type_icon @@ -277,7 +277,7 @@ msgstr "Mandato Generico" #. module: account_banking_mandate #: model_terms:ir.ui.view,arch_db:account_banking_mandate.view_mandate_search msgid "Group By" -msgstr "Group By" +msgstr "Raggruppa per" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__id @@ -316,12 +316,12 @@ msgstr "Se selezionata, alcuni messaggi hanno un errore di consegna." #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_is_follower msgid "Is Follower" -msgstr "E' un Follower" +msgstr "Sta seguendo" #. module: account_banking_mandate #: model:ir.model,name:account_banking_mandate.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "Registrazione contabile" #. module: account_banking_mandate #: model:ir.model,name:account_banking_mandate.model_account_move_line @@ -443,7 +443,7 @@ msgstr "" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_account_banking_mandate__message_needaction_counter msgid "Number of Actions" -msgstr "Numero di Azioni" +msgstr "Numero di azioni" #. module: account_banking_mandate #: model:ir.model.fields,field_description:account_banking_mandate.field_res_partner__mandate_count @@ -460,7 +460,7 @@ msgstr "Numero di Errori" #. module: account_banking_mandate #: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__message_needaction_counter msgid "Number of messages which requires an action" -msgstr "Numero di messaggi che richiedono un azione" +msgstr "Numero di messaggi che richiedono una azione" #. module: account_banking_mandate #: model:ir.model.fields,help:account_banking_mandate.field_account_banking_mandate__message_has_error_counter diff --git a/account_banking_mandate/models/__init__.py b/account_banking_mandate/models/__init__.py index 096b524b8..0de456248 100644 --- a/account_banking_mandate/models/__init__.py +++ b/account_banking_mandate/models/__init__.py @@ -4,5 +4,4 @@ from . import account_move from . import res_partner_bank from . import res_partner from . import account_payment_line -from . import bank_payment_line from . import account_move_line diff --git a/account_banking_mandate/models/account_banking_mandate.py b/account_banking_mandate/models/account_banking_mandate.py index 3ea1e5751..64626675a 100644 --- a/account_banking_mandate/models/account_banking_mandate.py +++ b/account_banking_mandate/models/account_banking_mandate.py @@ -44,7 +44,7 @@ class AccountBankingMandate(models.Model): tracking=40, domain=lambda self: self._get_default_partner_bank_id_domain(), ondelete="restrict", - index=True, + index="btree", check_company=True, ) partner_id = fields.Many2one( @@ -52,7 +52,7 @@ class AccountBankingMandate(models.Model): related="partner_bank_id.partner_id", string="Partner", store=True, - index=True, + index="btree", ) company_id = fields.Many2one( comodel_name="res.company", diff --git a/account_banking_mandate/models/bank_payment_line.py b/account_banking_mandate/models/bank_payment_line.py deleted file mode 100644 index 5eb6c80ba..000000000 --- a/account_banking_mandate/models/bank_payment_line.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2014 Compassion CH - Cyril Sester -# Copyright 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza -# Copyright 2015-16 Akretion - Alexis de Lattre -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo import api, fields, models - - -class BankPaymentLine(models.Model): - _inherit = "bank.payment.line" - - mandate_id = fields.Many2one( - comodel_name="account.banking.mandate", - string="Direct Debit Mandate", - related="payment_line_ids.mandate_id", - check_company=True, - ) - - @api.model - def same_fields_payment_line_and_bank_payment_line(self): - res = super().same_fields_payment_line_and_bank_payment_line() - res.append("mandate_id") - return res diff --git a/account_banking_mandate/readme/CONTRIBUTORS.rst b/account_banking_mandate/readme/CONTRIBUTORS.rst index 848ab9aa5..4bb9651d2 100644 --- a/account_banking_mandate/readme/CONTRIBUTORS.rst +++ b/account_banking_mandate/readme/CONTRIBUTORS.rst @@ -8,3 +8,4 @@ * Marçal Isern * Andrea Stirpe * Manuel Regidor +* Giovanni Francesco Capalbo diff --git a/account_banking_mandate/static/description/index.html b/account_banking_mandate/static/description/index.html index e5e5be90f..0f01eabbc 100644 --- a/account_banking_mandate/static/description/index.html +++ b/account_banking_mandate/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runbot

+

Production/Stable License: AGPL-3 OCA/bank-payment Translate me on Weblate Try me on Runbot

This module adds a generic model for banking mandates. These mandates can be specialized to fit any banking mandates (such as sepa or lsv).

A banking mandate is attached to a bank account and represents an @@ -404,7 +404,7 @@ account.

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -415,6 +415,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Compassion CH
  • Tecnativa
  • Akretion
  • +
  • Therp B.V.
  • @@ -430,6 +431,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Marçal Isern <marsal.isern@qubiq.es>
  • Andrea Stirpe <a.stirpe@onestein.nl>
  • Manuel Regidor <manuel.regidor@sygel.es>
  • +
  • Giovanni Francesco Capalbo <giovanni@therp.nl>
  • @@ -439,7 +441,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    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.

    -

    This module is part of the OCA/bank-payment project on GitHub.

    +

    This module is part of the OCA/bank-payment project on GitHub.

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

    diff --git a/account_banking_mandate/tests/test_invoice_mandate.py b/account_banking_mandate/tests/test_invoice_mandate.py index aec660c85..2ae61ab07 100644 --- a/account_banking_mandate/tests/test_invoice_mandate.py +++ b/account_banking_mandate/tests/test_invoice_mandate.py @@ -262,11 +262,7 @@ class TestInvoiceMandate(TransactionCase): self.invoice_account = self.env["account.account"].search( [ - ( - "user_type_id", - "=", - self.env.ref("account.data_account_type_receivable").id, - ), + ("account_type", "=", "asset_receivable"), ("company_id", "=", self.company.id), ], limit=1, @@ -275,11 +271,7 @@ class TestInvoiceMandate(TransactionCase): self.env["account.account"] .search( [ - ( - "user_type_id", - "=", - self.env.ref("account.data_account_type_expenses").id, - ), + ("account_type", "=", "expense"), ("company_id", "=", self.company.id), ], limit=1, diff --git a/account_banking_mandate/tests/test_mandate.py b/account_banking_mandate/tests/test_mandate.py index b6d6ca796..c8f80cb03 100644 --- a/account_banking_mandate/tests/test_mandate.py +++ b/account_banking_mandate/tests/test_mandate.py @@ -9,115 +9,64 @@ from odoo.tests.common import TransactionCase class TestMandate(TransactionCase): - def test_mandate_01(self): - bank_account = self.env.ref("account_payment_mode.res_partner_12_iban") - mandate = self.env["account.banking.mandate"].create( + def setUp(self): + super(TestMandate, self).setUp() + self.company = self.env.company + self.company_2 = self.env["res.company"].create({"name": "company 2"}) + self.company_2.partner_id.company_id = self.company_2.id + self.bank_account = self.env.ref("account_payment_mode.res_partner_12_iban") + self.bank_account.partner_id.company_id = self.company.id + self.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, } ) - self.assertEqual(mandate.state, "draft") - mandate.validate() - self.assertEqual(mandate.state, "valid") - mandate.cancel() - self.assertEqual(mandate.state, "cancel") - mandate.back2draft() - self.assertEqual(mandate.state, "draft") + + def test_mandate_01(self): + self.assertEqual(self.mandate.state, "draft") + self.mandate.validate() + self.assertEqual(self.mandate.state, "valid") + self.mandate.cancel() + self.assertEqual(self.mandate.state, "cancel") + self.mandate.back2draft() + self.assertEqual(self.mandate.state, "draft") def test_mandate_02(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) with self.assertRaises(UserError): - mandate.back2draft() + self.mandate.back2draft() def test_mandate_03(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) - mandate.validate() - + self.mandate.validate() with self.assertRaises(UserError): - mandate.validate() + self.mandate.validate() def test_mandate_04(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) - mandate.validate() - mandate.cancel() + self.mandate.validate() + self.mandate.cancel() with self.assertRaises(UserError): - mandate.cancel() + self.mandate.cancel() def test_onchange_methods(self): - bank_account = self.env.ref("account_payment_mode.res_partner_12_iban") - mandate = self.env["account.banking.mandate"].new( - { - "partner_bank_id": bank_account.id, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) bank_account_2 = self.env.ref("account_payment_mode.res_partner_2_iban") - mandate.partner_bank_id = bank_account_2 - mandate.mandate_partner_bank_change() - self.assertEqual(mandate.partner_id, bank_account_2.partner_id) + 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) def test_constrains_01(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) - mandate.validate() + self.mandate.validate() with self.assertRaises(ValidationError): - mandate.signature_date = fields.Date.to_string( - fields.Date.from_string(fields.Date.context_today(mandate)) + self.mandate.signature_date = fields.Date.to_string( + fields.Date.from_string(fields.Date.context_today(self.mandate)) + timedelta(days=1) ) def test_constrains_02(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) - with self.assertRaises(UserError): - mandate.company_id = self.company_2 + self.mandate.company_id = self.company_2 def test_constrains_03(self): - 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, - "signature_date": "2015-01-01", - "company_id": self.company.id, - } - ) bank_account_2 = self.env["res.partner.bank"].create( { "acc_number": "1234", @@ -126,7 +75,7 @@ class TestMandate(TransactionCase): } ) with self.assertRaises(UserError): - mandate.partner_bank_id = bank_account_2 + self.mandate.partner_bank_id = bank_account_2 def test_constrains_04(self): mandate = self.env["account.banking.mandate"].create( @@ -140,7 +89,7 @@ class TestMandate(TransactionCase): } ) with self.assertRaises(UserError): - bank_account.mandate_ids += mandate + bank_account.write({"mandate_ids": [(6, 0, mandate.ids)]}) def test_mandate_reference_01(self): """ @@ -222,12 +171,3 @@ class TestMandate(TransactionCase): } ) self.assertTrue(mandate.unique_mandate_reference) - - def setUp(self): - res = super(TestMandate, self).setUp() - # Company - self.company = self.env.ref("base.main_company") - - # Company 2 - self.company_2 = self.env["res.company"].create({"name": "Company 2"}) - return res diff --git a/account_banking_mandate/views/account_banking_mandate_view.xml b/account_banking_mandate/views/account_banking_mandate_view.xml index 820808a21..ebde21253 100644 --- a/account_banking_mandate/views/account_banking_mandate_view.xml +++ b/account_banking_mandate/views/account_banking_mandate_view.xml @@ -88,10 +88,6 @@ view.mandate.form.buttons account.banking.mandate -