Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3487 Представления

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
2372
2
янв. 19
4361
1
мар. 25
2056
0
дек. 24
2042
0
авг. 25
1971