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

[Odoo 15.0] - [om_account_followup] - Date Format on Report #73

Closed
haertwigfrank opened this issue Jul 14, 2022 · 1 comment
Closed

Comments

@haertwigfrank
Copy link

Issue: The printed payment follow-up report is printing the date only in US date format while used in different language e.g german

File: /om_account_followup/report/followup_print.py

Function: def _lines_get_with_partner

original code: line_data = { 'name': line.move_id.name, 'ref': line.ref, 'date': line.date, 'date_maturity': line.date_maturity, 'balance': balance, 'blocked': line.blocked, 'currency_id': currency, }

possible change: line_data = { 'name': line.move_id.name, 'ref': line.ref, 'date': format_date(self.env, line.date), 'date_maturity': format_date(self.env, line.date_maturity), 'balance': balance, 'blocked': line.blocked, 'currency_id': currency, }
other changes: from odoo.tools import format_date

@haertwigfrank haertwigfrank changed the title [15.0] om_account_followup - Date Format [Odoo 15.0] - [om_account_followup] - Date Format on Report Jul 15, 2022
@odoomates
Copy link
Owner

Updated: 4480c58

Thanks for the code and looking forward for more such contributions <3

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

No branches or pull requests

2 participants