Skip to Content
Menu
This question has been flagged

How to hide the Filter Favorite Button when the model is account.invoice?

Is there a way to do that? I tried it with those methods, but nothing is working:

in the Button XML:

t-if="widget.model == 'account.invoice'"
if (view_type !== 'list' && model !== 'account.invoice'){
$('.oe-list-test').hide();
}

any help? thanks



Avatar
Discard
Related Posts Replies Views Activity
0
Apr 18
3773
0
Apr 18
3261
1
Sep 18
7096
0
Nov 23
1413
0
Dec 17
4097