Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3507 Переглядів

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?

Аватар
Відмінити
Автор Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 21
2378
2
січ. 19
4369
1
бер. 25
2077
0
груд. 24
2056
0
серп. 25
1983