Cannot fetch $object id in actions class

Hello.

I am developing a custom module and I;m not able to fetch the current object id as I need it for an sql query.

In another action, that posts on .card.php I’ve used just “$object->id” and it work fine.

What I need to do is to add a column to customers orders list (commande/list.php) but it’s not working. After line 1381 and 1382

while ($i < min($num, $limit)) {
        $obj = $db->fetch_object($resql);

where the table gets populated, all references are with “$generic_commande->id = …” so I’ve tried both with “$generic_commande->id” and “$obj->rowid” and yet cannot get it printed.

Any help much appreciated.

P.S.: Field is printed. If I set a hard value (any number or word) I can see it. So it’s just how I can get the id of the current row. I am using “printFieldListValue” hook that is whitin the while loop.

Figured it out. All “$hookmanager” are missing some options like $actions and $object, thus they cannot be passed.