-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[18.0][MIG] account_banking_sepa_credit_transfer #1405
Draft
alexis-via
wants to merge
95
commits into
OCA:18.0
Choose a base branch
from
akretion:18-mig-account_banking_sepa_credit_transfer
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[18.0][MIG] account_banking_sepa_credit_transfer #1405
alexis-via
wants to merge
95
commits into
OCA:18.0
from
akretion:18-mig-account_banking_sepa_credit_transfer
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Small API changes * Updated two additional imports to new API * A payment mode type needs a suitable bank type
…tion 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.
…tures 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
…e instead of tomorrow
…r 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
* 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.
* 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.
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.
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
Sometimes sepa file could have been detached from the corresponding payment order.
…ion numbers + es translations
…, account_banking_direct_debit: Remove Environment.manage() Environment.manage() is deprecated in v 15.0
…to pain.001.001.03
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: bank-payment-15.0/bank-payment-15.0-account_banking_sepa_credit_transfer Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_banking_sepa_credit_transfer/
From this version, Odoo already includes code on the account.payment.method creation for adding such method to each journal: https://github.com/odoo/odoo/blob/a93ed75cb80f16f/addons/account/models/account_payment_method.py#L24-L38 so we don't need to explicitly create them for the new payment methods we are adding in these modules. TT41146
…yment refactoring Notables changes: - InstrId and EndToEndId tags are now filled with the journal entry ID, as there's no bank payment line identifier.
…or in the tests In case the currency is not active, the test fails because an invoice cannot be validated with an inactive currency TT43341
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: bank-payment-16.0/bank-payment-16.0-account_banking_sepa_credit_transfer Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer/
Currently translated at 100.0% (14 of 14 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_banking_sepa_credit_transfer Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer/es/
Currently translated at 100.0% (14 of 14 strings) Translation: bank-payment-16.0/bank-payment-16.0-account_banking_sepa_credit_transfer Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: bank-payment-16.0/bank-payment-16.0-account_banking_sepa_credit_transfer Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer/
The field 'sepa' on account.payment.order is only display for SEPA payment methods. If the option "show warning if not SEPA" is enabled on the payment method, a warning banner is now displayed on payment orders with a SEPA payment method which are not SEPA.
NEW FEATURES - activate 'in_payment' payment_state on invoices... at last ! - payment order numbering: add ability to have a sequence specific to a particular payment mode (optional) - add show account number policy "first_last" to show N first and N last characters of bank account number SMALL IMPROVEMENTS - account.payment.method: rename field "payment_order_only" to "payment_order_ok" for naming consistency with the field of account.payment.mode. Auto-set "payment_order_ok" of payment mode from the equivalent field of payment method. Migration scripts provided for account.payment.method and the data of SEPA credit transfer and SEPA direct debit. - payment order attachment: add M2O payment_file_id that points to the payment file. No more need for a simplified attachment form view. - keep the spaces in the scrambled bank account number, so that the user easily understands that it is a "scrambled" bank account number - add field acc_number_scrambled on res.partner.bank for easy and direct use of scrambled account number SIMPLIFICATION / CODE CLEANUP - remove field partner_bank_id on account.move.line - move code for scrambled account number from qweb report to res.partner.bank class - remove boolean field show_bank_account_from_journal from account.payment.mode: we now consider that this option is always true i.e. when account_payment_partner is installed, Odoo takes the bank accounts to display on the customer invoice from the payment mode (if the payment mode is empty, it displays all the bank accounts of the company). As a consequence, hide partner_bank_id on customer invoice form view. - remove fields inbound_payment_order_only and outbound_payment_order_only from account.journal : these 2 fields were not used! - add check_company=True where it was missing and remove code of constraint that checks company consistency - re-organise form view of payment order to equilibrate between left column and right column TECHNICAL: - replace @api.onchange by computed readonly=False store=True fields - remove (or reduce) the use of demo data in tests - speed-up tests by using tracking_disable=True - Replace (6, 0, []) and (0, 0, {}) by Command.set() and Command.create() - add sql unicity constraint on payment order number per company
Harmonize values for reference_type on account.move and communication_type on account.payment.line: 2 possible values : free and structured (migration script provided) Simplify code for reference.
Use lxml.objectify instead of lxml.etree for XML generation Add support for currencies with decimal places != 2 Stop using safe_eval() in _prepare_field() Add arg 'raise_if_oversized' in _prepare_field() to avoid cutting fields that should never be cut More robust implementation of allowed characters in _prepare_field(): filter on the allower characters instead of filtering in unallowed characters Don't use _prepare_field() where it is not really needed (on dates, country code, currency code) Remove support for pain.001.001.02: nobody uses it (pain.001.001.03 must be used according to EPC) and it adds maintenance burden Switch methods from public to private where relevant Remove noqa: C901 in account_banking_sepa_credit_transfer Add tests in account_banking_pain_base
Remove support for: - SCT : pain.001.001.04, pain.001.001.05 - SDD : ain.008.001.03, ain.008.001.04 because these PAIN version have never been adopted by EPC. Update and improve README
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.