Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3525 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
sept. 21
2389
2
janv. 19
4372
1
mars 25
2087
0
déc. 24
2077
0
août 25
1992