1) If the contract is running when the employee is archived, we move the contract in the expired stage and we set the date of the archive wizard to the contract's end date. 2) If the contract has expired when the employee is archived, do not change the date. task-3373275 closes odoo/odoo#130714 X-original-commit: e84106cdc5ae8015ee0c15a6c842d91dc2da1343 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com> Signed-off-by: Kuldeep Singh (kusi) <kusi@odoo.com>