Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions project_sale_usability/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _domain_sale_invoice_line(self):
# check if analytic_distribution contains id of analytic account
query.add_where(
"account_move_line.analytic_distribution ?| array[%s]",
[str(project.account_id.id) for project in self if project.account_id],
[str(project.account_id.id) for project in self],
)
query.order = None
query_string, query_param = query.select(
Expand Down Expand Up @@ -128,7 +128,7 @@ def button_open_out_invoice_line(self):
"name": _("Out Invoice Lines"),
"domain": domain,
"type": "ir.actions.act_window",
"view_mode": "tree",
"view_mode": "list",
"res_model": "account.move.line",
}

Expand All @@ -139,6 +139,6 @@ def button_open_out_refund_line(self):
"name": _("Out Refund Lines"),
"domain": domain,
"type": "ir.actions.act_window",
"view_mode": "tree",
"view_mode": "list",
"res_model": "account.move.line",
}
Loading