跳至内容
菜单
此问题已终结
3 回复
976 查看

By default the inventory user has a smart button called Quantity on Hand.....

The path to it obviously is Inventory -> Products Menu -> click on one of the Products in the kanban....

The struggle that I have is that the purchase user should also have this button / information without being able to edit the quantity would be a bonus...

Purchase -> Products Menu -> click on one of the Products in the kanban....  (now the onhand quantiy button is missing)

The additional limiting factor is that we are using odoo online....

 ....can this be done through studio?  And if so how?   

形象
丢弃
最佳答案

I think there is not any easy way to do this (but I might be wrong). The visibility of field on-hand qty field has been set to Inventory/user and even by removing or changing visibility to Internal users does not provides visibility to Purchase/ user

The work around to achieving this was a provide inventory user access to purchase / user, while taking away all the access rights.

  1. Duplicate Inventory / user group - Setting > User & Companies > Groups
  2. Rename the original group to maybe 'Inventory Info' and the duplicated group to Inventory / user (it doesn't work the other way around)
  3. In the access rights of Inventory/ Info delete all the access rights, ensure the inherited groups has Internal user

4. For Inventory /User group ensure inherited group has Internal users and well as Inventory / info. Ensure to preserver the access rights as is

5. For Purchase / User group add or update Inventory / info as inherited group. Preserve the access rights as is


This should now provide the required 'on-hand qty' field to be visible to purchase / user group. The on hand qty is also visible on the Kanban view


However, they would also have access to Inventory app and menu's. 

To disable the menu, navigate to Settings > Technical > Menu items - search for inventory and delete visibility for Inventory / Info group.

While this would get you probably what you are looking for (and more), am not sure if I would recommend to implement it. Please test thoroughly (on a test DB probably by duplicating production) all aspects of access including those of the inventory users to ensure compliance and access. 

Hope the experts on this forum have a better solution.

形象
丢弃
编写者

Jaideep, thanks for the reply... I tried a bit of different take on your suggestion, --maybe you have a solution... :-).....
... in the Groups Menu I made a copy of the Intentory/user group. I called the copy of the group Intentory/purchasing.... Now when I go into the settings -> Manage users -> "purchasing user" -> access rights and look into the Inventory Section / inventory drop down I still only get the "user" or "administrator".... ....the strange thing, -when I did the same step with the "billing" in accounting calling it "test" then the "test" does appear in the selection box.... ....any ideas?

Hi, not sure if the copy was saved or maybe you would have to refresh after saving the copy for it to reflect in user settings. It is possible sometimes if you have 2 windows open.

Also, if you are trying to follow the suggested solution, ensure to rename the original group to Inventory/purchase and not the copy (point2)

编写者 最佳答案

If you give a user only access to purchasing, how can the user see quantity on hands at the products (item master level)

purchasing user does have product / item Master level access by default.   Giving the purchassing person inventory access is not doable because of GAAP rules

形象
丢弃
编写者

Ok, I succesfully killed the inventory option under user settings. The only luck is that I am playing in a test database... And when I mean gone, I mean the complete label (Inventory) and associated drop down box...
Deleting the new inventory group also did not work... very strange.... Odoo 17.4

编写者

AND WOW.... ...going into the Studio Tool to look at invisible fields does not reveal the Inventory label Inventory dropdown combo.. WOW :-(

最佳答案

You can remove Access create from puchase user in modules "  stock.quant"

in this case the purchase user can't edit stock 

形象
丢弃
相关帖文 回复 查看 活动
4
6月 24
16399
3
1月 21
4797
2
5月 23
1767
0
8月 22
1217
2
3月 22
4911