Odoo Help

0

How to find all the customer invoices that were paid after the due date?

v6
By
code_shaman
on 2/7/13, 3:42 AM 1,197 views

I'm trying to find all paid customer invoices that were paid after the due date.

Is there a way to create a filter to find these invoices?

0

Not a direct solution, and maybe not the best approach, but here's an idea to achieve similar result (I once had similar requirement).

Create a field of function type (fields.function) which check several values in the account.invoice object (and another related objects such as payment -> account.move.line) and compare these values:

  • state
  • date_due
  • account_move_line.date (many2many)

Beware that this would probably slows down tree view a bit.

Another idea and probably a better approach is to write the paid_date to account.invoice when the state changes from 'open' to 'paid'. I don't know but it may also be possible to check the wkf_item object checking it's workflow transformation date, could someone confirm this?

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/7/13, 3:42 AM
Seen: 1197 times
Last updated: 3/16/15, 8:10 AM