Viewslist: add menu item (print pdf)

Hi,
I am resuming this post and my work after some time.
Regarding the last export issue above, I found that a similar problem has already been reported several times (for example here: https://github.com/salesagility/SuiteCRM/issues/6626 and https://github.com/salesagility/SuiteCRM/issues/4958).

Here is proposed a solution for the Accounts module https://github.com/salesagility/SuiteCRM/commit/3da81e2764efe090624d35385d811c3524c32f19
but in my case they are two custom modules. In particular, the error is generated between the relationship of the two

MySQL error 1054: Unknown column ‘join_clob_clob_anagrafica_clob_clob_condizioni_2_name.name’ in ‘where clause’

One is Accounts type and the other base.

Does anyone think I could adapt this code to my case? And how?
Thanks so much!