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
  3. 2
      account_financial_report/report/templates/aged_partner_balance.xml
  4. 4
      account_financial_report/report/templates/general_ledger.xml
  5. 4
      account_financial_report/report/templates/open_items.xml

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"]

2
account_financial_report/report/templates/aged_partner_balance.xml

@ -94,7 +94,7 @@
</div> </div>
<div class="act_as_row"> <div class="act_as_row">
<div class="act_as_cell"> <div class="act_as_cell">
<span t-esc="date_at" t-options="{'widget': 'date'}"/>
<span t-esc="date_at" t-options="{'widget': 'date'}" />
</div> </div>
<div class="act_as_cell"> <div class="act_as_cell">
<t t-if="only_posted_moves">All posted entries</t> <t t-if="only_posted_moves">All posted entries</t>

4
account_financial_report/report/templates/general_ledger.xml

@ -115,8 +115,8 @@
</div> </div>
<div class="act_as_row"> <div class="act_as_row">
<div class="act_as_cell"> <div class="act_as_cell">
From: <span t-esc="date_from" t-options="{'widget': 'date'}"/>
To: <span t-esc="date_to" t-options="{'widget': 'date'}"/>
From: <span t-esc="date_from" t-options="{'widget': 'date'}" />
To: <span t-esc="date_to" t-options="{'widget': 'date'}" />
</div> </div>
<div class="act_as_cell"> <div class="act_as_cell">
<t t-if="only_posted_moves">All posted entries</t> <t t-if="only_posted_moves">All posted entries</t>

4
account_financial_report/report/templates/open_items.xml

@ -110,7 +110,7 @@
</div> </div>
<div class="act_as_row"> <div class="act_as_row">
<div class="act_as_cell"> <div class="act_as_cell">
<span t-esc="date_at" t-options="{'widget': 'date'}"/>
<span t-esc="date_at" t-options="{'widget': 'date'}" />
</div> </div>
<div class="act_as_cell"> <div class="act_as_cell">
<t t-if="target_move == 'posted'">All posted entries</t> <t t-if="target_move == 'posted'">All posted entries</t>
@ -172,7 +172,7 @@
<div class="act_as_row lines"> <div class="act_as_row lines">
<!--## date--> <!--## date-->
<div class="act_as_cell left"> <div class="act_as_cell left">
<span t-esc="line['date']" t-options="{'widget': 'date'}"/>
<span t-esc="line['date']" t-options="{'widget': 'date'}" />
</div> </div>
<!--## move--> <!--## move-->
<div class="act_as_cell left"> <div class="act_as_cell left">

Loading…
Cancel
Save