Skip to Content
Menú
This question has been flagged
2 Respostes
3498 Vistes

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
Descartar
Autor 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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
de set. 21
2373
2
de gen. 19
4364
1
de març 25
2062
0
de des. 24
2048
0
d’ag. 25
1975