I have a button on a tree view
The tree view is on model A and model A has a relation with model B
I'd like the button on the tree view on model A to appear only if there are more than 0 related records in B
Model A is based on a hand written query (that creates a view) so I can't store a state field there (or can I ?)
How do I achieve this ?
Thanks