跳至內容
選單
此問題已被標幟
6 回覆
4062 瀏覽次數

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. 

頭像
捨棄
最佳答案

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.

頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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!

最佳答案

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

頭像
捨棄
作者

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.

相關帖文 回覆 瀏覽次數 活動
2
3月 24
1621
3
11月 23
17312
3
11月 24
24924
1
4月 23
6065
1
3月 23
2261