Commit Graph

443 Commits

Author SHA1 Message Date
Stéphane Bidoul
ee0ea2a01e sepa attachments migration fix
Sometimes sepa file could have been detached
from the corresponding payment order.
2020-06-09 11:29:27 +02:00
Alexis de Lattre
96aed91e7e 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
2020-06-09 11:29:27 +02:00
Philippe Schmidt
71b31d5b62 Add requested descriptions in an OCA README.rst file 2020-06-09 11:29:27 +02:00
Alexis de Lattre
10810d916d Use attachments instead of creating a specific object for each kind of payment order 2020-06-09 11:29:27 +02:00
Stéphane Bidoul
e49ec4125d sepa credit tfr: get BIC from bank account if not available on bank
Since the bank is optional on bank accounts and the BIC can be set
on the bank account if there is no bank, we allow the system to
get the BIC from the bank account in case it is not on the bank.

We give priority to the BIC indicated on the bank, keeping
the same behaviour with existing data where the bank BIC is
available.
2020-06-09 11:29:27 +02:00
Julien Laloux
f63b847aa7 Fix an error when no payment_order_ids 2020-06-09 11:29:27 +02:00
Pedro M. Baeza
6519678a6c [MIG] account_banking_sepa_credit_transfer: Migration to v8 2020-06-09 11:29:27 +02:00
Launchpad Translations on behalf of banking-addons-team
ef43ad95ad Launchpad automatic translations update. 2020-06-09 11:29:27 +02:00
Alexis de Lattre
010841d28b [RFR] account_banking_sepa_credit_transfer
* Start code factoring between SCT and SDD.
* More code factoring between SCT and SDD As a consequence, we now have support for structured remittance info in SDD.
* The requested collection date now uses the fields date_prefered and date_scheduled of payment.order, instead of the field in the SDD wizard.
* Mutualize more code between SCT and SDD.
* Replace unallowed ascii caracters by '-' Update some error messages Update translation files and FR translation Include sepa_export in gen_args Factorize more code between SDD and SCT Fix view of payment lines The modules account_banking_pain_base and account_banking_sepa_* are now fully PEP8 compliant
* For SCT, if BIC is not provided, we should not put the 'Creditor Agent' block at all, according to EPC guidelines (on this point, it is different from the Direct Debit !)
* Add demo data
* Add missing utf-8 header Update state field on SEPA file objects and display it in tree+form views. Migrate form views to version 7.0 and simplify them.
2020-06-09 11:29:27 +02:00
Launchpad Translations on behalf of banking-addons-team
5f5a8808fa Launchpad automatic translations update. 2020-06-09 11:29:27 +02:00
Alexis de Lattre
76db03c062 [IMP] account_banking_sepa_credit_transfer:
* Better prototype for the _prepare_field function. Update help message, POT file and FR translation.
* Revert the dependancy to account_banking_payment_export (the field payment_order_type on payment.mode.type has a default value of "payment" anyway).
* Akretion-Noviat code sprint dated 2013-11-21: - add module account_banking_pain_base - add support for initiating party identification, priority and structured remittance info in XML file - the requested execution date now uses the fields date_prefered and date_scheduled (the field of the wizard has been removed) - the 'convert to ascii' feature is now an option of the payment mode (enabled by default) - set 'communication' field of payment.line to 140 chars and hide field 'communicatio n2'
* FIX label : Customer (which is wrong, it is most of the time a Supplier !)-> Creditor More PEP8 stuff.
2020-06-09 11:29:27 +02:00
Launchpad Translations on behalf of banking-addons-team
c9faec740f Launchpad automatic translations update. 2020-06-09 11:29:27 +02:00
Alexis de Lattre
84cccfa736 [IMP] account_banking_sepa_credit_transfer: Support new format + other things:
* Add support for pain.001.001.05 Fix dependencies (I need the field "payment_order_type" which is in account_banking_payment) Only use ASCII characters in the XML file (that's how banks use XML !) Use the payment order reference as the Message Identification of the XML file. Use the payment line sequence as the "End to End Identification" Remove the Instruction Identification ('InstrId') because it is not a required field (only the End to End identification is required) Rename variables in the function create_sepa() to include the number of each field as used in the EPC guidelines Reduce the number of flake8 warnings Make code more modular : - self.pool.get('banking.export.sepa').create() has a _prepare fonction - most of the content of the XML file can be inherited via _prepare_field()
* Update strings. Update FR translation.
* fields.date.context_today doesn't work with datetime => we now use the native field create_date Coding style improvements.
* Add logo
2020-06-09 11:29:27 +02:00
Pedro M. Baeza
57023fc42a Translation template files for all modules. 2020-06-09 11:29:27 +02:00
Stefan Rijnhart
397804980d Retrieve current date in user's timezone [FIX] Default to current date instead of tomorrow 2020-06-09 11:29:27 +02:00
Erwin van der Ploeg
3cd4370d83 Added translations to all banking modules in use in the Netherlands 2020-06-09 11:29:27 +02:00
Stéphane Bidoul
f617edf4b5 [RFR] account_banking_payment: refactoring to make payment export features available without pulling bank statement features
- introduce account_banking_payment_export module with all features from account_banking_payment that do not involve changing the payment order workflow or depend on bank statement changes
- account_banking_payment_export does not depend on account_banking
- account_banking_payment is consequently stripped of above features
- account_banking_sepa_credit_transfer depend on account_banking_payment_export and is compatible with the default payment order workflow
- clarified comment about workflow in account_banking_sepa_credit_transfer
- avoid generating invalid sepa credit transfer files when bank accounts have no BIC
2020-06-09 11:29:27 +02:00
Alexis de Lattre
ce99af47ea Update strings to prepare the arrival of SEPA Direct Debit XSD validation of the SEPA XML file is now really working Update views to 7.0-style Better error handling when Bank account in missing on the invoice. 2020-06-09 11:29:27 +02:00
Stefan Rijnhart
2bdf3e0abe [IMP] account_banking_sepa_credit_transfer: 3 things
* Small API changes
* Updated two additional imports to new API
* A payment mode type needs a suitable bank type
2020-06-09 11:29:27 +02:00
unknown
112c48496e account_banking_sepa_credit_transfer implementing SEPA SCT pain 2020-06-09 11:29:27 +02:00
OCA-git-bot
080bad77d6 account_payment_order 13.0.1.3.1 2020-06-08 07:59:04 +00:00
OCA-git-bot
f87f29d221 Merge PR #714 into 13.0
Signed-off-by pedrobaeza
2020-06-08 07:48:21 +00:00
Alexis de Lattre
16fe869244 Fix state condition on invoice view 2020-06-06 23:37:16 +02:00
OCA-git-bot
ac154ffedd account_payment_order 13.0.1.3.0 2020-05-29 08:15:11 +00:00
OCA-git-bot
35d87a1723 Merge PR #712 into 13.0
Signed-off-by pedrobaeza
2020-05-29 07:47:28 +00:00
OCA-git-bot
e9eca50f56 account_payment_order 13.0.1.2.0 2020-05-28 18:51:09 +00:00
OCA-git-bot
162346abdb Merge PR #700 into 13.0
Signed-off-by pedrobaeza
2020-05-28 18:40:30 +00:00
Valentin Vinagre Urteaga
234d07e3c3 [FIX] account_payment_order: fix the attachment file name & dowload.
Case: After the configuration of a debit order and generating the .xml file, user can't download it from the next step screen using the download link.
This fix makes the .xml file downloadable from the .xml file name as it was in older versions
2020-05-28 20:21:31 +02:00
Valentin Vinagre Urteaga
15219150e6 [FIX] account_payment_order: fix payment orders from invoice tree view
Case: User can't add invoices to payment/debit orders from the tree view but it's still possible to add them one by one from the form view.
- Remove binding_views="form": by default are "tree & form".
With this fix, users can add payment/debit orders from the invoice tree view
2020-05-28 20:18:37 +02:00
Valentin Vinagre Urteaga
2ce5a31b65 [FIX] account_payment_order: fix set partner_bank_id in account move lines
Case:
The bank account isn't set properly in the payment order lines, because the bank account is only got from account.move.line or the first bank account in the partner_id, but never from the invoice (account.move).

Solution:
With this fix, the bank account will be get from account.move when matching the criteria.
2020-05-28 20:11:40 +02:00
Stefan Rijnhart
dad347ddb0 [FIX] Set priority on alternate view 2020-05-15 18:16:52 +02:00
OCA Transbot
c0fc6a2073 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_mode/
2020-05-14 14:42:03 +00:00
OCA-git-bot
d6bbe7bde9 account_payment_mode 13.0.1.1.1 2020-05-14 14:41:50 +00:00
oca-travis
59cf547ebd [UPD] Update account_payment_mode.pot 2020-05-14 14:30:38 +00:00
OCA-git-bot
e6af7c60aa Merge PR #707 into 13.0
Signed-off-by pedrobaeza
2020-05-14 14:15:33 +00:00
Hughes Damry
f923ed2da0 Remove obsolete company_partner_id 2020-05-14 15:55:07 +02:00
OCA Transbot
ccb50a7d89 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_purchase
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_purchase/
2020-05-13 11:48:20 +00:00
OCA-git-bot
57983e1d63 [UPD] pin flake8 version [ci skip] 2020-05-13 13:47:56 +02:00
OCA Transbot
27f14ef29c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-13.0/bank-payment-13.0-account_banking_pain_base
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_banking_pain_base/
2020-04-25 08:14:44 +00:00
OCA-git-bot
730d44c31e [ADD] setup.py 2020-04-25 08:14:32 +00:00
OCA-git-bot
d8e17a7c25 [UPD] README.rst 2020-04-25 08:14:31 +00:00
oca-travis
7bbba3592a [UPD] Update account_payment_purchase_stock.pot 2020-04-25 08:07:33 +00:00
oca-travis
fd3ed0c26b [UPD] Update account_payment_purchase.pot 2020-04-25 08:07:32 +00:00
OCA-git-bot
79e71695b4 Merge PR #674 into 13.0
Signed-off-by pedrobaeza
2020-04-25 07:56:05 +00:00
OCA-git-bot
e6459117ca [ADD] setup.py 2020-04-22 09:24:22 +00:00
OCA-git-bot
8d62bef220 [UPD] README.rst 2020-04-22 09:24:21 +00:00
oca-travis
7443c6bdd5 [UPD] Update account_banking_pain_base.pot 2020-04-22 09:14:27 +00:00
OCA-git-bot
9822a1a383 Merge PR #698 into 13.0
Signed-off-by pedrobaeza
2020-04-22 09:04:30 +00:00
Valentin Vinagre Urteaga
79b1d823f9 [MIG] account_banking_pain_base: Migration to 13.0 2020-04-21 18:59:39 +02:00
Valentin Vinagre Urteaga
94722e79e7 [IMP] account_banking_pain_base: black, isort, prettier 2020-04-21 18:36:00 +02:00