Skip to content

Commit

Permalink
fix domain for external subcontractors
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Feb 7, 2025
1 parent d2f72ff commit 3528fd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion account_invoice_subcontractor/models/subcontractor_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,15 @@ def _scheduler_action_subcontractor_invoice_create(self, days=7):
all_works = self.search(
[
("invoice_id.invoice_date", "<=", date_filter),
("subcontractor_invoice_line_id", "=", False),
"|",
"&",
("subcontractor_type", "=", "internal"),
("subcontractor_invoice_line_id", "=", False),
"&",
"&",
("subcontractor_type", "=", "external"),
("employee_id.auto_generate_invoice", "=", True),
("supplier_invoice_line_id", "=", False),
("state", "in", ["posted", "paid"]),
],
)
Expand Down

0 comments on commit 3528fd4

Please sign in to comment.