Finaly, i resolve the problem by rewritting the search_name function of partner (the file is attached).
I bypass the search name function of the orm. (it's not compatible with the record rule for the partner)
For the Record Rules, i authorised the patner linking to the users and the companies. Because, it's used for the internal message.
Hi,
The previous solution don't work everytime.
Finaly, i resolve the problem by rewritting the search_name function of partner (the file is attached).
I bypass the search name function of the orm. (it's not compatible with the record rule for the partner)
For the Record Rules, i authorised the patner linking to the users and the companies. Because, it's used for the internal message.
This solution is ok for me now.
regard