[FIX] hr_expense: remove traceback when post entry
[FIX] hr_expense: remove traceback when post entry

The `state` field of `account.payment` no longer exists and should not be set explicitely.
Set the `ref` field to the expense name instead of the `name`field.

Task ID 2266922

closes odoo/odoo#52823

Signed-off-by: Laurent Smet <1328e3a5817ff065354bd0f7f4073cbb6dcc7eca@users.noreply.github.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo