跳至內容
選單
此問題已被標幟
2 回覆
3647 瀏覽次數
When adding the fleet.vehicle field so that each company only sees its own,
the vehicle field in creating a new contract is empty 

The first issue unshared vehicule / multi company ,was solved by salman hichri and Niyas Raphy,
here the link
https\:\/\/www\.odoo\.com\/mail\/\view\?model\=forum\.post\&amp\;res_id\=\148421
\

頭像
捨棄
作者 最佳答案

Hi Niyas,

thank you for you quick response,

when I change the rule to inactive, user can see all vehicules of all companies and the same field is also empy in the contract.

when I delete the rule , I have same thing (field vehicule is empty in contract) so the fault is coming from fleet rental management !

--------------

頭像
捨棄
最佳答案

Hi,

This is due to the record rule you have added, in th rule we have specified that the user should only see the vehicles of his company. There might not be any vehicles/fleet which belong to users company, that is why we are getting empty many2one field.


To make sure that the record rule is the reason, you can just make the newly added record rule active = false, just open the newly added record rule and untick the active field. And then check whether fleets are shown in the many2one field.


As a solution just create a fleet from current user login and see whether it is listed in the many2one field.


Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 20
1885
2
4月 19
2540
2
2月 19
3020
0
4月 25
163
0
4月 25
648