Add basic "config" view for Receiving
This commit is contained in:
parent
340a177a29
commit
1fbe429a08
6 changed files with 278 additions and 8 deletions
|
@ -78,6 +78,9 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
index_title = "Receiving"
|
||||
downloadable = True
|
||||
bulk_deletable = True
|
||||
configurable = True
|
||||
config_title = "Receiving"
|
||||
|
||||
rows_editable = False
|
||||
rows_editable_but_not_directly = True
|
||||
rows_deletable = True
|
||||
|
@ -1826,6 +1829,47 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
progress.session['success_url'] = success_url
|
||||
progress.session.save()
|
||||
|
||||
def configure_get_simple_settings(self):
|
||||
config = self.rattail_config
|
||||
return [
|
||||
|
||||
# supported workflows
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_receiving_from_scratch',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_receiving_from_invoice',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_receiving_from_purchase_order',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_receiving_from_purchase_order_with_invoice',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_truck_dump_receiving',
|
||||
'type': bool},
|
||||
|
||||
# product handling
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_cases',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.allow_expired_credits',
|
||||
'type': bool},
|
||||
|
||||
# mobile interface
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.mobile_images',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.mobile_quick_receive',
|
||||
'type': bool},
|
||||
{'section': 'rattail.batch',
|
||||
'option': 'purchase.mobile_quick_receive_all',
|
||||
'type': bool},
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
cls._receiving_defaults(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue