mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Fix: Only managers can finish stock moves.
This commit is contained in:
@@ -127,6 +127,7 @@ class MaintenanceRequestRepairLine(models.Model):
|
||||
'origin': request.name,
|
||||
'analytic_account_id': analytic_account_id,
|
||||
})
|
||||
move = move.sudo()
|
||||
move._action_confirm()
|
||||
move._action_assign()
|
||||
if move.state != 'assigned':
|
||||
|
||||
Reference in New Issue
Block a user