Misc. tweaks per latest convention etc.

This commit is contained in:
Lance Edgar 2024-05-29 21:59:23 -05:00
parent 08887a9053
commit bf13401687
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@ class ProductView(CoreOfficeMasterView):
labels = {
'id': "ID",
'store_id': "Store ID",
'upc': "UPC",
'department_number': "Dept. No.",
'foodstamp': "Food Stamp",
@ -263,7 +264,7 @@ class ProductView(CoreOfficeMasterView):
},
)
return HTML.literal(
g.render_buefy_table_element(data_prop='vendorItemsData'))
g.render_table_element(data_prop='vendorItemsData'))
def template_kwargs_view(self, **kwargs):
kwargs = super().template_kwargs_view(**kwargs)

View file

@ -50,6 +50,7 @@ class PersonViewSupplement(ViewSupplement):
def configure_form(self, f):
if not self.master.creating:
f.append('corepos_customer_id')
f.set_required('corepos_customer_id', False)
def get_version_child_classes(self):
model = self.model