[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
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.analytic.line</field>
|
||||
<field name="view_mode">tree,form,graph</field>
|
||||
<field name="context">{'search_default_timesheet_invoice_id': active_id}</field>
|
||||
<field name="domain">[('timesheet_invoice_id', '=', active_id)]</field>
|
||||
</record>
|
||||
|
||||
<record id="account_invoice_view_form_inherit_sale_timesheet" model="ir.ui.view">
|
||||
|
||||
Reference in New Issue
Block a user