Misc. tweaks per latest convention etc.
This commit is contained in:
parent
08887a9053
commit
bf13401687
|
@ -44,6 +44,7 @@ class ProductView(CoreOfficeMasterView):
|
||||||
|
|
||||||
labels = {
|
labels = {
|
||||||
'id': "ID",
|
'id': "ID",
|
||||||
|
'store_id': "Store ID",
|
||||||
'upc': "UPC",
|
'upc': "UPC",
|
||||||
'department_number': "Dept. No.",
|
'department_number': "Dept. No.",
|
||||||
'foodstamp': "Food Stamp",
|
'foodstamp': "Food Stamp",
|
||||||
|
@ -263,7 +264,7 @@ class ProductView(CoreOfficeMasterView):
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
return HTML.literal(
|
return HTML.literal(
|
||||||
g.render_buefy_table_element(data_prop='vendorItemsData'))
|
g.render_table_element(data_prop='vendorItemsData'))
|
||||||
|
|
||||||
def template_kwargs_view(self, **kwargs):
|
def template_kwargs_view(self, **kwargs):
|
||||||
kwargs = super().template_kwargs_view(**kwargs)
|
kwargs = super().template_kwargs_view(**kwargs)
|
||||||
|
|
|
@ -50,6 +50,7 @@ class PersonViewSupplement(ViewSupplement):
|
||||||
def configure_form(self, f):
|
def configure_form(self, f):
|
||||||
if not self.master.creating:
|
if not self.master.creating:
|
||||||
f.append('corepos_customer_id')
|
f.append('corepos_customer_id')
|
||||||
|
f.set_required('corepos_customer_id', False)
|
||||||
|
|
||||||
def get_version_child_classes(self):
|
def get_version_child_classes(self):
|
||||||
model = self.model
|
model = self.model
|
||||||
|
|
Loading…
Reference in a new issue