AccessError when clicking a link button on an unsaved record
Steps to reproduce:
1. Create a new sale
2. Before saving it click the shipment link.
The following error is raised:
'You are not allowed to read records "-3" of "Sale" because of at least one of these rules: User in company'
I won't expected an error here.
I see several options here:
* Save the record when clicking on the link (like other buttons)
* Make the links readonly until the record is saved.