From 0469ddea7a715fc22e42466f4ab9e4664280dba1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 15 Aug 2017 16:49:49 -0500 Subject: [PATCH] Fix permission used for mobile receiving item lookup --- tailbone/views/purchasing/receiving.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 4a14bc45..38fa60ba 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -93,6 +93,7 @@ class ReceivingBatchView(PurchasingBatchView): rows_deletable = False mobile_creatable = True mobile_rows_filterable = True + mobile_rows_creatable = True row_grid_columns = [ 'sequence', @@ -353,12 +354,11 @@ class ReceivingBatchView(PurchasingBatchView): url_prefix = cls.get_url_prefix() model_key = cls.get_model_key() permission_prefix = cls.get_permission_prefix() - row_permission_prefix = cls.get_row_permission_prefix() # mobile lookup (note perm; this view can create new rows) config.add_route('mobile.{}.lookup'.format(route_prefix), '/mobile{}/{{{}}}/lookup'.format(url_prefix, model_key)) config.add_view(cls, attr='mobile_lookup', route_name='mobile.{}.lookup'.format(route_prefix), - renderer='json', permission='{}.create'.format(row_permission_prefix)) + renderer='json', permission='{}.create_row'.format(permission_prefix)) cls._purchasing_defaults(config) cls._batch_defaults(config)