commit
c794962193
|
@ -327,7 +327,11 @@ class GeneralLedgerReport(models.AbstractModel):
|
||||||
analytic_tag_ids,
|
analytic_tag_ids,
|
||||||
cost_center_ids,
|
cost_center_ids,
|
||||||
):
|
):
|
||||||
domain = [("date", ">=", date_from), ("date", "<=", date_to)]
|
domain = [
|
||||||
|
("display_type", "=", False),
|
||||||
|
("date", ">=", date_from),
|
||||||
|
("date", "<=", date_to),
|
||||||
|
]
|
||||||
if account_ids:
|
if account_ids:
|
||||||
domain += [("account_id", "in", account_ids)]
|
domain += [("account_id", "in", account_ids)]
|
||||||
if company_id:
|
if company_id:
|
||||||
|
|
|
@ -79,8 +79,7 @@ class JournalLedgerReport(models.AbstractModel):
|
||||||
return moves.ids, Moves, move_data
|
return moves.ids, Moves, move_data
|
||||||
|
|
||||||
def _get_move_lines_domain(self, move_ids, wizard, journal_ids):
|
def _get_move_lines_domain(self, move_ids, wizard, journal_ids):
|
||||||
|
return [("display_type", "=", False), ("move_id", "in", move_ids)]
|
||||||
return [("move_id", "in", move_ids)]
|
|
||||||
|
|
||||||
def _get_move_lines_order(self, move_ids, wizard, journal_ids):
|
def _get_move_lines_order(self, move_ids, wizard, journal_ids):
|
||||||
return ""
|
return ""
|
||||||
|
|
|
@ -123,7 +123,11 @@ class TrialBalanceReport(models.AbstractModel):
|
||||||
only_posted_moves,
|
only_posted_moves,
|
||||||
show_partner_details,
|
show_partner_details,
|
||||||
):
|
):
|
||||||
domain = ["&", ("date", ">=", date_from), ("date", "<=", date_to)]
|
domain = [
|
||||||
|
("display_type", "=", False),
|
||||||
|
("date", ">=", date_from),
|
||||||
|
("date", "<=", date_to),
|
||||||
|
]
|
||||||
if company_id:
|
if company_id:
|
||||||
domain += [("company_id", "=", company_id)]
|
domain += [("company_id", "=", company_id)]
|
||||||
if account_ids:
|
if account_ids:
|
||||||
|
|
Loading…
Reference in New Issue