Skip to content
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

[16.0][MIG] account_banking_sepa_credit_transfer: Migration to 16.0 #990

Merged

Conversation

dzungtran89
Copy link
Contributor

@dzungtran89 dzungtran89 commented Dec 1, 2022

@dzungtran89 dzungtran89 marked this pull request as ready for review December 1, 2022 10:17
@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch from c01e343 to 6edf837 Compare December 12, 2022 04:47
@StephaneMangin
Copy link

cc @dzungtran89 You can remove this dependency #972
Superseeded by #1056 and merged.

@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch 2 times, most recently from 4146db9 to 0c8b082 Compare March 14, 2023 09:59
@dzungtran89
Copy link
Contributor Author

Hi @StephaneMangin , the PR has been updated

@StephaneMangin
Copy link

You are missing dependencies

For the PR dependency, please take in account this comment OCA/edi#724 (comment)

@pedrobaeza
Copy link
Member

There's a wiki entry for it: https://github.com/OCA/maintainer-tools/wiki/Use-temporary-reference%28s%29-to-another-pull-request%28s%29

@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch from 80e51c1 to 878e85b Compare March 24, 2023 08:51
@dzungtran89
Copy link
Contributor Author

(checking the failed test case)

@dzungtran89 dzungtran89 changed the title [MIG] account_banking_sepa_credit_transfer: Migration to 16.0 [16.0][MIG] account_banking_sepa_credit_transfer: Migration to 16.0 Mar 31, 2023
@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch 2 times, most recently from b3d207a to 0e31e51 Compare March 31, 2023 04:01
@dzungtran89
Copy link
Contributor Author

@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch from 0e31e51 to 0038d87 Compare May 5, 2023 07:21
@pedrobaeza
Copy link
Member

/ocabot migration account_banking_sepa_credit_transfer

Please rebase and remove the temporary commit.

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone May 27, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request May 27, 2023
14 tasks
@pedrobaeza
Copy link
Member

And please include #1084

alexis-via and others added 10 commits May 29, 2023 09:59
* 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
…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.
OCA-git-bot and others added 22 commits May 29, 2023 09:59
Currently translated at 100.0% (17 of 17 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_banking_sepa_credit_transfer
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_banking_sepa_credit_transfer/sv/
Currently translated at 100.0% (14 of 14 strings)

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/ca/
…, account_banking_direct_debit: Remove Environment.manage()

Environment.manage() is deprecated in v 15.0
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
@dzungtran89 dzungtran89 force-pushed the 16.0-account_banking_sepa_credit_transfer branch from 0038d87 to 75a4f1c Compare May 29, 2023 03:03
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-990-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit feea7e2 into OCA:16.0 Jun 3, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 249b120. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.