Skip to Content
Menu
v 15.0 Third Party 2590
Download for v 15.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Invoicing (account)
Lines of code 1661
Technical Name om_account_followup
LicenseLGPL-3
Websitehttps://www.odoomates.tech
Versions 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Invoicing (account)
Lines of code 1661
Technical Name om_account_followup
LicenseLGPL-3
Websitehttps://www.odoomates.tech
Versions 14.0 15.0 16.0 17.0 18.0

Customer Follow Up Management

Follow-Up Levels

Send Follow-Ups


Manual Follow-Ups

Follow-ups Analysis






If you need any support or want more features, just contact us:


Email: odoomates@gmail.com



Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
The error you're encountering is due to the UndefinedColumn: column a.account_type does not exist issue, indicating that the account_type column is not found in the account_account table in your database schema.
by
hesham
on 6/16/24, 4:06 PM

Adjust Query to Match Database Schema:

  • Modify the query in _get_followup_overdue_query method to use the correct column name that corresponds to the account type. If account_type is not available, check for alternatives such as user_type_id or any other column that defines the type of account.

Assuming user_type_id is the correct column:

Solution :

query = ('''

    SELECT pid AS partner_id, SUM(bal2) FROM (

        SELECT 

            CASE WHEN bal IS NOT NULL THEN bal ELSE 0.0 END AS bal2, 

            p.id as pid 

        FROM (

            SELECT 

                (debit - credit) AS bal, 

                partner_id 

            FROM account_move_line l

            LEFT JOIN account_account a ON a.id = l.account_id

            WHERE a.user_type_id IN (

                SELECT id FROM account_account_type WHERE type='receivable'

            )

            %s AND full_reconcile_id IS NULL

            AND l.company_id = %%s

        ) AS l

        RIGHT JOIN res_partner p ON p.id = partner_id 

    ) AS pl

    GROUP BY pid HAVING %s

''') % (overdue_only_str, having_where_clause)




Re: The error you're encountering is due to the UndefinedColumn: column a.account_type does not exist issue, indicating that the account_type column is not found in the account_account table in your database schema.
by
Odoo Mates
on 6/20/24, 2:09 PM Author

Thanks for reporting the issue.

The error has been introduced in our last commit, it has been fixed, can you get the latest code and try and please let us know the feedbacks