Skip to content

Commit

Permalink
add possibility to change the date of creation of subcontractor invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Sep 12, 2024
1 parent 917294d commit df21530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_invoice_subcontractor/models/subcontractor_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ def invoice_from_work(self):
)
return invoices

def _scheduler_action_subcontractor_invoice_create(self):
date_filter = date.today() - timedelta(days=7)
def _scheduler_action_subcontractor_invoice_create(self, days=7):
date_filter = date.today() - timedelta(days=days)
subcontractors = self.env["hr.employee"].search(
[
("subcontractor_type", "=", "internal"),
Expand Down

0 comments on commit df21530

Please sign in to comment.