[FIX] product_cores_report: move_type field change

This commit is contained in:
Jared Kipe
2022-01-24 15:20:12 -08:00
parent a299632aaa
commit 9b3b9b4b19

View File

@@ -186,7 +186,7 @@ class ProductCoreAgedReport(models.AbstractModel):
{'name': sign * qty_expired or '', 'no_format': sign * qty_expired}, {'name': sign * qty_expired or '', 'no_format': sign * qty_expired},
], ],
'action_context': { 'action_context': {
'default_type': aml.move_id.type, 'default_move_type': aml.move_id.move_type,
'default_journal_id': aml.move_id.journal_id.id, 'default_journal_id': aml.move_id.journal_id.id,
}, },
'title_hover': self._format_aml_name(aml.name, aml.ref, aml.move_id.name), 'title_hover': self._format_aml_name(aml.name, aml.ref, aml.move_id.name),