[FIX] stock_account:Manager Cannot Change Configuration Settings

When the user is a stock manager and has the Settings rights, he can
modify the inventory settings.

opw:767233
This commit is contained in:
Goffin Simon
2017-08-30 10:14:59 +02:00
parent 063381e0f6
commit f39bc44948
@@ -25,4 +25,6 @@ class StockConfigSettings(models.TransientModel):
data = 'real_time'
else:
data = 'manual_periodic'
if self.user_has_groups('stock.group_stock_manager') and self.user_has_groups('base.group_system'):
self = self.sudo()
return self.env['ir.values'].set_default('product.category', 'property_valuation', data)