Browse Source

fix formatare data

pull/725/head^2
Dorin Hongu 4 years ago
parent
commit
02be6b7511
  1. 5
      account_financial_report/report/aged_partner_balance.py
  2. 4
      account_financial_report/report/open_items.py

5
account_financial_report/report/aged_partner_balance.py

@ -438,8 +438,9 @@ class AgedPartnerBalanceReport(models.AbstractModel):
company_id = data["company_id"] company_id = data["company_id"]
account_ids = data["account_ids"] account_ids = data["account_ids"]
partner_ids = data["partner_ids"] partner_ids = data["partner_ids"]
date_at = datetime.strptime(data["date_at"], "%Y-%m-%d").date() #data["date_at"]
date_at_object = date_at # datetime.strptime(date_at, "%Y-%m-%d").date()
date_at = data["date_at"]
date_at = datetime.strptime(date_at, "%Y-%m-%d").date()
date_at_object = date_at
date_from = data["date_from"] date_from = data["date_from"]
only_posted_moves = data["only_posted_moves"] only_posted_moves = data["only_posted_moves"]
show_move_line_details = data["show_move_line_details"] show_move_line_details = data["show_move_line_details"]

4
account_financial_report/report/open_items.py

@ -353,7 +353,9 @@ class OpenItemsReport(models.AbstractModel):
company_id = data["company_id"] company_id = data["company_id"]
account_ids = data["account_ids"] account_ids = data["account_ids"]
partner_ids = data["partner_ids"] partner_ids = data["partner_ids"]
date_at = datetime.strptime(data["date_at"] , "%Y-%m-%d").date() # data["date_at"]
date_at = datetime.strptime(
data["date_at"], "%Y-%m-%d"
).date() # data["date_at"]
date_at_object = date_at # datetime.strptime(date_at, "%Y-%m-%d").date() date_at_object = date_at # datetime.strptime(date_at, "%Y-%m-%d").date()
date_from = data["date_from"] date_from = data["date_from"]
target_move = data["target_move"] target_move = data["target_move"]

Loading…
Cancel
Save