diff --git a/ssi_hr_reimbursement/__manifest__.py b/ssi_hr_reimbursement/__manifest__.py index ae171ee..f727c38 100644 --- a/ssi_hr_reimbursement/__manifest__.py +++ b/ssi_hr_reimbursement/__manifest__.py @@ -23,6 +23,7 @@ "ssi_m2o_configurator_mixin", "base_duration", "base_automation", + "ssi_financial_accounting", ], "data": [ "security/ir_module_category_data.xml", diff --git a/ssi_hr_reimbursement/models/hr_reimbursement.py b/ssi_hr_reimbursement/models/hr_reimbursement.py index 324b458..66eaa00 100644 --- a/ssi_hr_reimbursement/models/hr_reimbursement.py +++ b/ssi_hr_reimbursement/models/hr_reimbursement.py @@ -205,6 +205,10 @@ def _default_currency_id(self): ondelete="set null", copy=False, ) + last_payment_date = fields.Date( + string="Last Payment Date", + related="move_id.last_payment_date", + ) @api.depends( "payable_move_line_id", diff --git a/ssi_hr_reimbursement/views/hr_reimbursement_views.xml b/ssi_hr_reimbursement/views/hr_reimbursement_views.xml index df3f792..a63e18e 100644 --- a/ssi_hr_reimbursement/views/hr_reimbursement_views.xml +++ b/ssi_hr_reimbursement/views/hr_reimbursement_views.xml @@ -112,6 +112,10 @@ decoration-bf="1" optional="show" /> +