Report name
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from trytond.model import ModelSingleton, ModelSQL, ModelView, fields
|
||||
from trytond.pool import Pool
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Configuration(ModelSingleton, ModelSQL, ModelView):
|
||||
@@ -79,4 +80,5 @@ class Configuration(ModelSingleton, ModelSQL, ModelView):
|
||||
if getattr(action, 'name', '') != target_label:
|
||||
to_write.extend(([action], {'name': target_label}))
|
||||
if to_write:
|
||||
ActionReport.write(*to_write)
|
||||
with Transaction().set_user(0):
|
||||
ActionReport.write(*to_write)
|
||||
|
||||
Reference in New Issue
Block a user