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)