Customer Follow Up Management
by Odoo Mates https://www.odoomates.tech , Odoo S.A https://www.odoomates.tech
Odoo
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
Lines of code | 1661 |
Technical Name |
om_account_followup |
License | LGPL-3 |
Website | https://www.odoomates.tech |
Versions | 14.0 15.0 16.0 17.0 18.0 |
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere 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.
Adjust Query to Match Database Schema:
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.
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