Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
6 Odgovori
4063 Prikazi

Good Morning,

I inherit the fleet.vehicle model in order to add other field for my purposes.

After create a new vehicle if I try to add, for example a new log fuel in the log fuel services menu, I can not see the vehicle inside the selection of the many2one vehicle_id(that is already written by odoo) field.

 Why? I see only "create and edit" and I cannot see the list of all vehicle created.


 Can you please help me, I'm Struggling a lot on this. 

Avatar
Opusti
Best Answer

Hey, had the same problem with fleet.vehicle. Turns out if you add a driver the vehicles show up. I haven't check the source code to see why is that. But It's what's happening.

Avatar
Opusti
Best Answer

Are you sure that u just added few fields?
please click "Search more" option and open the tree view 
There u can check and use filters also

Avatar
Opusti
Avtor

Yes I'm sure,

Even if I create new vehicle pushing create and edit, then I cannot see in the list of the many2one field. I have no filters or other stuff I inherited all the odoo standard views of the original fleet app!

Best Answer

Hi,

There might be some domain for the vehicle field, do one thing, activate the developer mode and place mouse hover the field name and see whether there is any domain for the field.

Thanks

Avatar
Opusti
Avtor

Hi

there is no domain computed, I can not understand why there is this problem.

Although in the normal fleet app if I create the vehicle I can see in the selection list.

Make sure there is no name_search function for the model vehicle, record filtration also can be done using this function. As you say the record is not visible in the many2one selection. Are those records visible if you go to the corresponding menu item?

The records for which active=False is set won't also not get listed in many2one fields.

Related Posts Odgovori Prikazi Aktivnost
2
mar. 24
1621
3
nov. 23
17313
3
nov. 24
24925
1
apr. 23
6065
1
mar. 23
2262