diff --git a/tailbone/views/purchasing/batch.py b/tailbone/views/purchasing/batch.py index d1bcd144..bbf72db1 100644 --- a/tailbone/views/purchasing/batch.py +++ b/tailbone/views/purchasing/batch.py @@ -254,18 +254,15 @@ class PurchasingBatchView(BatchMasterView): f.replace('store', 'store_uuid') if single_store: store = self.rattail_config.get_store(self.Session()) - f.set_widget('store_uuid', forms.widgets.ReadonlyWidget()) + f.set_widget('store_uuid', dfwidget.HiddenWidget()) f.set_default('store_uuid', store.uuid) f.set_hidden('store_uuid') else: f.set_widget('store_uuid', dfwidget.SelectWidget(values=self.get_store_values())) f.set_label('store_uuid', "Store") else: - if single_store: - f.remove_field('store') - else: - f.set_readonly('store') - f.set_renderer('store', self.render_store) + f.set_readonly('store') + f.set_renderer('store', self.render_store) # purchase f.set_renderer('purchase', self.render_purchase)