[FIX] fields: set attributes before accessing them
[FIX] fields: set attributes before accessing them

If renamed attributes are used, a warning is emit with `repr` of the
culprit field, which need attributes to be set.

Fixes #14036

dfang/odoo,hip-odoo/odoo,dfang/odoo,hip-odoo/odoo,ygol/odoo,dfang/odoo,ygol/odoo,dfang/odoo,ygol/odoo,dfang/odoo,ygol/odoo,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,hip-odoo/odoo,ygol/odoo,hip-odoo/odoo,dfang/odoo,ygol/odoo