@@ -185,6 +185,9 @@ Contributors
|
|||||||
- Saran Lim. <saranl@ecosoft.co.th>
|
- Saran Lim. <saranl@ecosoft.co.th>
|
||||||
- Omar Casti??eira <omar@comunitea.com>
|
- Omar Casti??eira <omar@comunitea.com>
|
||||||
- Chau Le <chaulb@trobz.com>
|
- Chau Le <chaulb@trobz.com>
|
||||||
|
- `Stesi Consulting <https://www.stesi.consulting>`__:
|
||||||
|
|
||||||
|
- Michele Di Croce <dicroce.m@stesi.consulting>
|
||||||
|
|
||||||
Much of the work in this module was done at a sprint in Sorrento, Italy
|
Much of the work in this module was done at a sprint in Sorrento, Italy
|
||||||
in April 2016.
|
in April 2016.
|
||||||
|
|||||||
@@ -31,6 +31,8 @@
|
|||||||
- Saran Lim. \<<saranl@ecosoft.co.th>\>
|
- Saran Lim. \<<saranl@ecosoft.co.th>\>
|
||||||
- Omar Casti??eira \<<omar@comunitea.com>\>
|
- Omar Casti??eira \<<omar@comunitea.com>\>
|
||||||
- Chau Le \<<chaulb@trobz.com>\>
|
- Chau Le \<<chaulb@trobz.com>\>
|
||||||
|
- [Stesi Consulting](https://www.stesi.consulting):
|
||||||
|
- Michele Di Croce \<<dicroce.m@stesi.consulting>\>
|
||||||
|
|
||||||
Much of the work in this module was done at a sprint in Sorrento, Italy
|
Much of the work in this module was done at a sprint in Sorrento, Italy
|
||||||
in April 2016.
|
in April 2016.
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ class TrialBalanceReport(models.AbstractModel):
|
|||||||
initial_balances = self.env["account.move.line"].read_group(
|
initial_balances = self.env["account.move.line"].read_group(
|
||||||
domain=domain,
|
domain=domain,
|
||||||
fields=["account_id", "balance", "amount_currency:sum"],
|
fields=["account_id", "balance", "amount_currency:sum"],
|
||||||
groupby=["account_id"],
|
groupby=["account_id", "currency_id"],
|
||||||
)
|
)
|
||||||
pl_initial_balance = 0.0
|
pl_initial_balance = 0.0
|
||||||
pl_initial_currency_balance = 0.0
|
pl_initial_currency_balance = 0.0
|
||||||
@@ -432,7 +432,7 @@ class TrialBalanceReport(models.AbstractModel):
|
|||||||
tb_initial_acc.append(
|
tb_initial_acc.append(
|
||||||
{"account_id": account.id, "balance": 0.0, "amount_currency": 0.0}
|
{"account_id": account.id, "balance": 0.0, "amount_currency": 0.0}
|
||||||
)
|
)
|
||||||
groupby_fields = ["account_id"]
|
groupby_fields = ["account_id", "currency_id"]
|
||||||
if grouped_by:
|
if grouped_by:
|
||||||
groupby_fields.append("analytic_account_ids")
|
groupby_fields.append("analytic_account_ids")
|
||||||
initial_domain_bs = self._get_initial_balances_bs_ml_domain(
|
initial_domain_bs = self._get_initial_balances_bs_ml_domain(
|
||||||
@@ -515,13 +515,13 @@ class TrialBalanceReport(models.AbstractModel):
|
|||||||
tb_initial_prt_bs = self.env["account.move.line"].read_group(
|
tb_initial_prt_bs = self.env["account.move.line"].read_group(
|
||||||
domain=initial_domain_bs,
|
domain=initial_domain_bs,
|
||||||
fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
|
fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
|
||||||
groupby=["account_id", "partner_id"],
|
groupby=["account_id", "partner_id", "currency_id"],
|
||||||
lazy=False,
|
lazy=False,
|
||||||
)
|
)
|
||||||
tb_initial_prt_pl = self.env["account.move.line"].read_group(
|
tb_initial_prt_pl = self.env["account.move.line"].read_group(
|
||||||
domain=initial_domain_pl,
|
domain=initial_domain_pl,
|
||||||
fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
|
fields=["account_id", "partner_id", "balance", "amount_currency:sum"],
|
||||||
groupby=["account_id", "partner_id"],
|
groupby=["account_id", "partner_id", "currency_id"],
|
||||||
)
|
)
|
||||||
tb_initial_prt = tb_initial_prt_bs + tb_initial_prt_pl
|
tb_initial_prt = tb_initial_prt_bs + tb_initial_prt_pl
|
||||||
if hide_account_at_0:
|
if hide_account_at_0:
|
||||||
@@ -536,7 +536,7 @@ class TrialBalanceReport(models.AbstractModel):
|
|||||||
"balance",
|
"balance",
|
||||||
"amount_currency:sum",
|
"amount_currency:sum",
|
||||||
],
|
],
|
||||||
groupby=["account_id", "partner_id"],
|
groupby=["account_id", "currency_id", "partner_id"],
|
||||||
lazy=False,
|
lazy=False,
|
||||||
)
|
)
|
||||||
total_amount = {}
|
total_amount = {}
|
||||||
|
|||||||
@@ -532,6 +532,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|||||||
<li>Saran Lim. <<a class="reference external" href="mailto:saranl@ecosoft.co.th">saranl@ecosoft.co.th</a>></li>
|
<li>Saran Lim. <<a class="reference external" href="mailto:saranl@ecosoft.co.th">saranl@ecosoft.co.th</a>></li>
|
||||||
<li>Omar Casti??eira <<a class="reference external" href="mailto:omar@comunitea.com">omar@comunitea.com</a>></li>
|
<li>Omar Casti??eira <<a class="reference external" href="mailto:omar@comunitea.com">omar@comunitea.com</a>></li>
|
||||||
<li>Chau Le <<a class="reference external" href="mailto:chaulb@trobz.com">chaulb@trobz.com</a>></li>
|
<li>Chau Le <<a class="reference external" href="mailto:chaulb@trobz.com">chaulb@trobz.com</a>></li>
|
||||||
|
<li><a class="reference external" href="https://www.stesi.consulting">Stesi Consulting</a>:<ul>
|
||||||
|
<li>Michele Di Croce <<a class="reference external" href="mailto:dicroce.m@stesi.consulting">dicroce.m@stesi.consulting</a>></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Much of the work in this module was done at a sprint in Sorrento, Italy
|
<p>Much of the work in this module was done at a sprint in Sorrento, Italy
|
||||||
in April 2016.</p>
|
in April 2016.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user