Pass resourcetype argument correctly when invalidating a transaction
This commit is contained in:
parent
d4090a4043
commit
fe2af5ac2b
2 changed files with 4 additions and 6 deletions
|
|
@ -62,7 +62,8 @@ class HistoryTable(tables.Table):
|
|||
"title": lambda record: (_("Click to invalidate") if record.valid else _("Click to validate"))
|
||||
if PermissionBackend.check_perm(get_current_authenticated_user(),
|
||||
"note.change_transaction_invalidity_reason", record) else None,
|
||||
"onclick": lambda record: 'de_validate(' + str(record.id) + ', ' + str(record.valid).lower() + ')'
|
||||
"onclick": lambda record: 'de_validate(' + str(record.id) + ', ' + str(record.valid).lower()
|
||||
+ ', "' + str(record.__class__.__name__) + '")'
|
||||
if PermissionBackend.check_perm(get_current_authenticated_user(),
|
||||
"note.change_transaction_invalidity_reason", record) else None,
|
||||
"onmouseover": lambda record: '$("#invalidity_reason_'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue