Commit Graph

397 Commits

Author SHA1 Message Date
Pedro M. Baeza
7afcea6dae [IMP] account_banking_sepa_direct_debit: Remove l10n_generic_coa hidden dependency in tests
As we were setting a new company with its CoA, we need to load in it one, but using
l10n_generic_coa doesn't serve, as we don't depend on that module (and we shouldn't),
but we are invoking its XML-ID for loading the CoA, trusting in the good faith that
the module is available and installed, which is not the case in some cases.

Luckily, Odoo provides already an inheritable test for having a minimal CoA that
doesn't require to load any chart. This PR uses that test and performs the minimal
changes to adapt the module tests to it.
2021-01-14 08:56:33 +01:00
Ignacio Buioli
0fab55855f Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (71 of 71 strings)

Translation: bank-payment-13.0/bank-payment-13.0-account_banking_sepa_direct_debit
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_banking_sepa_direct_debit/es_AR/
2021-01-14 08:56:33 +01:00
Pedro M. Baeza
a81fe79bb6 [IMP] account_banking_sepa_direct_debit: Ease inheritance in tests
- Unfold SDD test in 2 classes: the base with initialization + the other with tests
- Internal variable for parametrizing the chart template to load
2021-01-14 08:56:33 +01:00
Ignacio Buioli
ebfb1f7fe2 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (71 of 71 strings)

Translation: bank-payment-13.0/bank-payment-13.0-account_banking_sepa_direct_debit
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_banking_sepa_direct_debit/es_AR/
2021-01-14 08:56:33 +01:00
Ignacio Buioli
c08c7fb84e Added translation using Weblate (Spanish (Argentina)) 2021-01-14 08:56:33 +01:00
Marçal Isern
a1d76c9abd [MIG] account_banking_sepa_direct_debit: Migration to 13.0 2021-01-14 08:56:33 +01:00
Marçal Isern
bdae3ab5bf [IMP] account_banking_sepa_direct_debit: black, isort 2021-01-14 08:56:33 +01:00
oihane
c4285f434b Translated using Weblate (Spanish)
Currently translated at 75.6% (59 of 78 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_banking_sepa_direct_debit
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_banking_sepa_direct_debit/es/
2021-01-14 08:56:33 +01:00
Sergio Teruel
5287ff38dd [FIX] account_banking_sepa_direct_debit: Fix report mandate. Adapt to bootstrap 4 2021-01-14 08:56:33 +01:00
Pedro M. Baeza
b0dcef7688 [IMP] account_banking_sepa_direct_debit: Rise exception if the mandate type is not correct
Closes #600
2021-01-14 08:56:33 +01:00
Marco Calcagni
9da9c10c48 Translated using Weblate (Italian)
Currently translated at 22.1% (17 of 77 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_banking_sepa_direct_debit
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_banking_sepa_direct_debit/it/
2021-01-14 08:56:33 +01:00
Marco Calcagni
ea576a8973 Added translation using Weblate (Italian) 2021-01-14 08:56:33 +01:00
Sergio Teruel
20db121aac [12.0][FIX] account_banking_sepa_direct_debit: Fix positional arguments in message_post 2021-01-14 08:56:33 +01:00
Thomas Binsfeld
8f830b28af [REF] Account Banking SEPA Direct Debit: check SEPA ready 2021-01-14 08:56:33 +01:00
Thomas Binsfeld
333365ee24 [FIX] Account Banking SEPA Direct Debit: creditor identifier in config
The sepa_creditor_identifier in res.config.settings is readonly by default (related) but should not.
2021-01-14 08:56:33 +01:00
Pedro M. Baeza
4d1f65c1fb [MIG] account_banking_sepa_direct_debit: Finish migration to 12.0
* Fixed tests
* Adjust code for Python dates handling
* Update copyrights
2021-01-14 08:56:33 +01:00
Sergio Teruel
23de947535 [MIG] account_banking_sepa_direct_debit: Migration to 12.0 2021-01-14 08:56:33 +01:00
andreparames
7852eeecf0 [ADD] sepa: add Instruction Identification field
InstrId is optional, so there should be no harm in
adding it always, with the same value as EndToEndId.
2021-01-14 08:56:33 +01:00
Stéphane Bidoul
22980d0caa [ADD] sepa: support for Purpose Code 2021-01-14 08:56:33 +01:00
Enric Tobella
76f41dd594 Translated using Weblate (Español (España))
Currently translated at 100,0% (60 of 60 strings)

Translation: bank-payment-11.0/bank-payment-11.0-account_banking_sepa_direct_debit
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_banking_sepa_direct_debit/es/
2021-01-14 08:56:33 +01:00
Alexis de Lattre
b93b354a33 [10.0][FIX] Split account move generated for SEPA direct debits per sequence_type (#464)
The sequence_type of mandates switches from First to Recurring:
- BEFORE: when state switched from 'open' to 'generated'
- NOW: when state switches from 'generated' to 'uploaded'
2021-01-14 08:56:33 +01:00
Andrea
92295d1c9c [11.0][FIX] account_banking_sepa_direct_debit: printing report 2021-01-14 08:56:33 +01:00
Pedro M. Baeza
aa8df88e53 [FIX] account_banking_sepa_direct_debit: Fix tests due to upstream change
Odoo has added a constraint for avoiding a company currency change if there
are move lines, making these tests to fail, as the currency is changed to EUR.

With this commit, we create a new company with EUR currency for avoiding the
problem.

This commit also changes account_banking_mandate for not duplicating mandate
number, as it was detected during the test creation.

Similar to 1f8e345469695d1fb1a2ba2109ddea3adbdf1f78
2021-01-14 08:56:33 +01:00
OCA Transbot
1d853ed619 OCA Transbot updated translations from Transifex 2021-01-14 08:56:33 +01:00
etobella
5ed010ddb1 [MIG] account_banking_sepa_direct_debit 2021-01-14 08:56:33 +01:00
Pedro M. Baeza
10b527e09b account_banking*: Show identifiers at payment mode level
Now the visibility is controlled through a security group.
2021-01-14 08:56:33 +01:00
OCA Transbot
17f2d680f9 OCA Transbot updated translations from Transifex 2021-01-14 08:56:33 +01:00
Alexis de Lattre
afd3aa0f94 [MIG] account_banking_sepa_direct_debit: Migration to 10.0 2021-01-14 08:56:33 +01:00
OCA Transbot
1f75089fc5 OCA Transbot updated translations from Transifex 2021-01-13 15:46:16 +01:00
Antonio Espinosa
612b64a3ee [IMP] account_banking_sepa_direct_debit: Add english lang to mandate 2021-01-13 15:46:16 +01:00
OCA Transbot
f2c110af31 OCA Transbot updated translations from Transifex 2021-01-13 15:46:16 +01:00
Pedro M. Baeza
95109a4fd4 [FIX+IMP] account_banking_sepa_direct_debit: 3 things:
* Remove unused POT files
* Spanish translation
* Fix mandate report layout
2021-01-13 15:46:16 +01:00
Alexis de Lattre
ee031e03a8 [MIG] account_banking_sepa_direct_debit: Migration to 9.0 2021-01-13 15:46:16 +01:00
OCA Transbot
e0a0c40439 OCA Transbot updated translations from Transifex 2021-01-13 15:46:16 +01:00
Sergio Incaser
c0669d8841 sepa_direct_debit_mandate: Split basic and sepa mandate 2021-01-13 15:46:16 +01:00
Pedro M. Baeza
5fb0ea85ed account_banking_sepa_direct_debit: Fixes #257 2021-01-13 15:46:16 +01:00
Antonio Espinosa
2e621b2234 Define SEPA identifiers per payment mode 2021-01-13 15:46:16 +01:00
Pedro M. Baeza
0287b5c1f2 [IMP] account_banking_sepa_direct_debit: Short headers + Bump version numbers + es translations 2021-01-13 15:46:16 +01:00
Alexis de Lattre
919c0a2b52 [IMP] account_banking_sepa_direct_debit: 4 things
* Add bank.payment.lines object to allow grouping in the payments
* Add a hook to inherit grouping of the transfer account move line

  Use that new hook in SEPA direct debits
  Better variable names
* FIX Reading wrong field for sequence type of SEPA DD
  Loop on bank payment lines instead of payment lines
* Update automated tests and demo data
* Add on_change on field 'type' of payment.mode for easier configuration
2021-01-13 15:46:16 +01:00
sergio-incaser
31608ce88d account_banking_sepa_direct_debit: Fix error in payment order validation when there is more than one line with the same mandate. 2021-01-13 15:46:16 +01:00
Alexis de Lattre
a97f1095e5 Port SEPA modules to new API
Fix an important regression in account_banking_sepa_direct_debit: "Date of Last Debit" was not set any more
Proper write of date_done with account_banking_payment_export is installed without account_banking_payment_transfer
Add post-install script for date_sent on payment.order
2021-01-13 15:46:16 +01:00
Philippe Schmidt
e14e9275d9 Add requested descriptions in an OCA README.rst file 2021-01-13 15:46:16 +01:00
Alexis de Lattre
58ec260fa7 Use attachments instead of creating a specific object for each kind of payment order 2021-01-13 15:46:16 +01:00
Stéphane Bidoul
96ee08ae37 sepa direct debit: get BIC from bank account if not available on bank 2021-01-13 15:46:16 +01:00
Alexis de Lattre
79adda4e70 [IMP] account_banking_sepa_direct_debit: 5 things:
* Transfer move: one transfer move for each payment.order with only 1 line in the transfer account for the total of the account move. Move the inherit of the 'Invoice' button of payment.order from account_banking_payment_transfer to account_banking_payment_export Demo data: Add a bank account + mandate on Agrolait, to be able to easily test multi-partner SEPA DD
* mandates: search by reference, add group_by, add seq type in tree view
* Add scheme in mandate tree+search view Replace tabs by spaces in mandate views account_banking_mandate/views/account_banking_mandate_view.xml: convert from dos to unix format
* Add sale_ok and purchase_ok filters in partner/sale/purchase form views Use widget=selection for payment_mode_id fields Update demo data
* Limit lenght of mandate reference, according to ISO 20022
2021-01-13 15:46:16 +01:00
Pedro M. Baeza
2d307f6dae [FIX+IMP] account_banking_sepa_direct_debit: Several things:
* Restore scheme field in mandate view
* Uncaught flake8 errors
* Set args correctly for cron job
* Split for removing stock dependency on sale
* Remove old translations templates
* More reorder on folder structure
* Translation template files
* Translations to spanish
2021-01-13 15:46:16 +01:00
Alexis de Lattre
d5bd1155e8 replace old sdd.mandate referencess 2021-01-13 15:46:16 +01:00
Pedro M. Baeza
ec23ee2291 [MIG] account_banking_sepa_direct_debit: Migration to 8.0 2021-01-13 15:46:16 +01:00
Launchpad Translations on behalf of banking-addons-team
a2b3846159 Launchpad automatic translations update. 2021-01-13 15:46:16 +01:00
Alexis de Lattre
329c119555 Add module account_banking_sepa_direct_debit that implements pain.008.001.02, pain.008.001.03 and pain.008.001.04. This module is not ready yet : the management of mandates is still missing. I am currently trying to get more information about these mandates to decide what is the best implemtation of the data model of the mandates (O2M on res.partner ? O2M os res.partner.bank ?). 2021-01-13 15:46:16 +01:00