From ecd8d38fdcbd48da1496f8e44b0ccb2d6fab48e5 Mon Sep 17 00:00:00 2001 From: MaxLarue Date: Fri, 30 Aug 2019 15:39:19 +0000 Subject: [PATCH] [FIX] sale_timesheet: fix action_timesheet_from_invoice The action_timesheet_from_invoice was not working anymore, it was redirecting to a list of all timesheet instead of only those linked to the actual invoice. It seems like the action was using a filter since it passed a search_default_* key in the context, but that filter is nowhere to be found. In order to fix the action, it was converted int a python method which gave access to the active move id. related task 2047389 --- addons/sale_timesheet/views/account_invoice_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_timesheet/views/account_invoice_views.xml b/addons/sale_timesheet/views/account_invoice_views.xml index fceb01f7446..d9b15dc7358 100644 --- a/addons/sale_timesheet/views/account_invoice_views.xml +++ b/addons/sale_timesheet/views/account_invoice_views.xml @@ -6,7 +6,7 @@ ir.actions.act_window account.analytic.line tree,form,graph - {'search_default_timesheet_invoice_id': active_id} + [('timesheet_invoice_id', '=', active_id)]