Skip to Content
Menu
This question has been flagged
2 Replies
2418 Views

I have the following model, which is supposed to let me indicate which vehicles will be used on a given day:

class DailyVehicleMap(models.Model):
_name = 'x_dailyvehiclemap'
date = fields.Date("Day", required=True)
vehicle = fields.Many2one('fleet.vehicle', 'Vehicle', required=True)

Although there are many entries in the `fleet.vehicle` table, they are not accessible to me when I try to add a record to `x_dailyvehiclemap`.

When I click the corresponding dropdown field, there is only a "create and edit" option, whereas I was expecting a list of suggestions from the table.

How can this be corrected?

Avatar
Discard
Author Best Answer

I adjusted the record rules for fleet.vehicle, such that my user has all the permissions for it - nevertheless the vehicles are not shown.

I don't think it is a matter of permissions, because when I use the other pages of the Fleet app interface, I can see the vehicles.

Avatar
Discard
Best Answer

Hi,

Check whether there is a record rule given for that model, ie, fleet.vehicle , if there is some record rule given, it can prevent the visibility of the records.

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 21
1169
2
Jan 19
3481
0
Dec 24
26
0
Oct 24
110
1
Mar 24
835