Skip to Content
Menu
This question has been flagged
2 Replies
7855 Views

I have an inventory transfer transaction type that I want to restrict to a custom group of employees (To Remove items from a Quarantine area) I created a group under settings, Users and Companies, Groups.


I have a group called Inventory / Quality 


When putting a "visible" condition to the validate button in the particular workflow I get the following: 


"Only groups with an external ID can be used here.  Please choose another group or assign manually an external ID to this group" 


I am not sure if this is the best way to do this or do a record rule based on transaction type but I only want special people to run this transfer transaction.  

Avatar
Discard
Best Answer

Hi,

If generating the external id for the group will solve the problems means, go the groups menu and search for your group, and just export it, once the export is triggered, odoo automatically sets an external id for the record.


Just try this and see whether it helps.


See: How To Generate External ID For The Records Created From User Interface Odoo


Thanks

Avatar
Discard

Nice trick, helped me

Thank you. you really saved me a huge amount of time!

Best Answer

It seems that if you create the user access group through the UI you cannot select it in Studio.  This was possible in earlier Odoo versions, but I'm not sure when it was changed.

But if you create the access group from within Studio, it gets assigned an External ID that starts with studio_customization and you can use it!


If you create the access group through code or import it with an External ID that should also work. 

The message is a bit misleading, because (1) you can't manually assign an External ID to an existing record, and (2) it does have an External ID, but it's one that Studio doesn't like for some reason.


Avatar
Discard