Hi there @guillaumejauffret 
(I moved your post to a new topic for the community to benefit as well)
Thanks for your feedback on the Smart Action form hooks! For the moment, we don’t support using both the reference
option in the fields declaration and applying filtering on the same field in the hooks.
There’s a workaround however, you can simply comment the reference
option and manage all the filtering logic in the hooks. Here’s an example where a customer hasMany
orders on forest-express-sequelize 
{
name: 'Update order status',
type: 'single',
fields: [{
field: 'order',
type: 'Enum',
enums: [],
// reference: 'orders.ref',
}, {
field: 'status',
type: 'Enum',
enums: ['Ready for shipping', 'Being processed', 'In transit', 'Shipped'],
}, {
field: 'Montant',
type: 'Number',
}],
hooks: {
load: async ({ fields, record }) => {
const newFields = fields;
const customerOrders = await orders.findAll({ where: { customerIdKey: record.id } });
const customerOrdersIds = await _.chain(customerOrders).map((element) => _.values(_.pick((element), 'ref'))).flatten().value();
newFields.order.enums = customerOrdersIds;
return newFields;
},
},
},
I will push your request to our productboard, let me know if this works for you in the meantime 