Cleanup default display for vendor catalog batches
expose description, notes etc.
This commit is contained in:
parent
5969515f25
commit
e462e41ae1
|
@ -61,20 +61,21 @@ class VendorCatalogView(FileBatchMasterView):
|
||||||
grid_columns = [
|
grid_columns = [
|
||||||
'id',
|
'id',
|
||||||
'vendor',
|
'vendor',
|
||||||
'effective',
|
'description',
|
||||||
'filename',
|
'filename',
|
||||||
'rowcount',
|
'rowcount',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
|
||||||
'executed',
|
'executed',
|
||||||
]
|
]
|
||||||
|
|
||||||
form_fields = [
|
form_fields = [
|
||||||
'id',
|
'id',
|
||||||
|
'description',
|
||||||
'vendor',
|
'vendor',
|
||||||
'filename',
|
'filename',
|
||||||
'future',
|
'future',
|
||||||
'effective',
|
'effective',
|
||||||
|
'notes',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'rowcount',
|
'rowcount',
|
||||||
|
@ -142,9 +143,6 @@ class VendorCatalogView(FileBatchMasterView):
|
||||||
g.set_link('vendor')
|
g.set_link('vendor')
|
||||||
g.set_link('filename')
|
g.set_link('filename')
|
||||||
|
|
||||||
def get_instance_title(self, batch):
|
|
||||||
return six.text_type(batch.vendor)
|
|
||||||
|
|
||||||
def configure_form(self, f):
|
def configure_form(self, f):
|
||||||
super(VendorCatalogView, self).configure_form(f)
|
super(VendorCatalogView, self).configure_form(f)
|
||||||
|
|
||||||
|
@ -176,6 +174,8 @@ class VendorCatalogView(FileBatchMasterView):
|
||||||
'parser_key',
|
'parser_key',
|
||||||
'vendor_uuid',
|
'vendor_uuid',
|
||||||
'future',
|
'future',
|
||||||
|
'description',
|
||||||
|
'notes',
|
||||||
])
|
])
|
||||||
|
|
||||||
parser_values = [(p.key, p.display) for p in self.get_parsers()]
|
parser_values = [(p.key, p.display) for p in self.get_parsers()]
|
||||||
|
@ -233,6 +233,7 @@ class VendorCatalogView(FileBatchMasterView):
|
||||||
def configure_row_form(self, f):
|
def configure_row_form(self, f):
|
||||||
super(VendorCatalogView, self).configure_row_form(f)
|
super(VendorCatalogView, self).configure_row_form(f)
|
||||||
f.set_renderer('product', self.render_product)
|
f.set_renderer('product', self.render_product)
|
||||||
|
f.set_type('upc', 'gpc')
|
||||||
f.set_type('discount_percent', 'percent')
|
f.set_type('discount_percent', 'percent')
|
||||||
|
|
||||||
def template_kwargs_create(self, **kwargs):
|
def template_kwargs_create(self, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue