Git Product home page Git Product logo

Comments (10)

pedrobaeza avatar pedrobaeza commented on June 2, 2024

Not possible, sorry. The same situation would be in the previous workflow when finishing the order. Now, it's done in another part, and it has the advantage of generating already the accounting in draft.

Optimizations should come from Odoo itself in their object account.payment.

from bank-payment.

davidwul avatar davidwul commented on June 2, 2024

Just adding some context.
This is for debit order. Account payment is not needed because, the bank don't tell us which withdrawn fails. So we only wait for when the money comes in and reconcile the out_invoice with.
Adding an option (on the payment order or on the payment mode) to not generate account payment would indeed solve the performance issue. Would this be accepted by the OCA?

On the other end, what can be done to enable optimization , should we raise an issue directly on odoo?

from bank-payment.

pedrobaeza avatar pedrobaeza commented on June 2, 2024

This has nothing to do with the money direction. Odoo core + enterprise does the same with payment and debit orders. The idea of this refactoring is:

  • Simplify code, letting Odoo core code to deal with the complexity of reconciliations.
  • Allow to handle "in_payment" payment state.
  • Pre-generate ASAP the accounting.

from bank-payment.

davidwul avatar davidwul commented on June 2, 2024

You're correct, we have the same issue is with the former odoo oca code. And money direction doesn't change the issue.
The change to come closer to odoo core is really good.

Let me explain our use case, maybe you might see the issue from a different angle with your odoo knowledge.

We have more than 3000 customers with direct debit. With the actual process (in odoo community) we have two problems:

  1. performance to generate (10 min) and validate (10 min) the debit order (perfomance is slightly slower than the previous oca code)
  2. when we mark the debit order as uploaded, the invoices related are marked as paid.
    This is an issue because, when our customers phones in to inquiry about theirs payment status, our collegue might say that everything's all right when it's not. (if the debit fails on their account). There are no pain 002 to inform about the status of each withdrawal attempts.

For us, the use for the debit order object is to:

  1. inform that the invoice was selected in a debit order
  2. create the file for the bank

I don't know if our use case can be served with the odoo community as it is now or if it is very special and not common to other OCA odoo user.
In that case we should develop our own customization to enable using direct debit.
What is your advice?

from bank-payment.

pedrobaeza avatar pedrobaeza commented on June 2, 2024

For the point 1, it's true that the performance is now a bit less, but it's because it's doing more things. Going to v16 will improve a lot on this.

For the point 2, we have done this move for covering such case, as we will be able to put the invoices in "In payment" state, and switched to Paid when reconciling the statement. This is what I'm now investigating.

from bank-payment.

davidwul avatar davidwul commented on June 2, 2024

Great regarding the in payment state, this is really a good move. First time I hear about that.
Looking forward to see that.
Regarding the performance issue, we just moved to 14 from 12. We are unfortunately not ready to go for 16.
We don't have the capacity to improve odoo code so we might try to bypass account.payment while waiting for moving to 16.
If you have a better idea, I would be glad to hear it.
Thanks

from bank-payment.

hhgabelgaard avatar hhgabelgaard commented on June 2, 2024

Hi @pedrobaeza

For the point 2, we have done this move for covering such case, as we will be able to put the invoices in "In payment" state, and switched to Paid when reconciling the statement. This is what I'm now investigating.

Was there any outcome of your investigating regarding "In Payment" state ?
Thanks

from bank-payment.

pedrobaeza avatar pedrobaeza commented on June 2, 2024

Not yet, sorry. Busy holidays comeback...

from bank-payment.

hhgabelgaard avatar hhgabelgaard commented on June 2, 2024

Hi @pedrobaeza
Do we need more than just having _get_invoice_in_payment_state() return 'in_payment'
That seems to work in a minimal test

Or am I missing something?

from bank-payment.

pedrobaeza avatar pedrobaeza commented on June 2, 2024

Yes, @alexis-via was pointing in that direction. Check #1174

from bank-payment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.