Include tax1 thru tax3 flags in form fields for product view page

This commit is contained in:
Lance Edgar 2019-09-03 13:44:59 -05:00
parent c874e879c1
commit 79be69f8c1

View file

@ -87,6 +87,9 @@ class ProductsView(MasterView):
labels = { labels = {
'upc': "UPC", 'upc': "UPC",
'status_code': "Status", 'status_code': "Status",
'tax1': "Tax 1",
'tax2': "Tax 2",
'tax3': "Tax 3",
} }
grid_columns = [ grid_columns = [
@ -131,6 +134,9 @@ class ProductsView(MasterView):
'cost', 'cost',
'deposit_link', 'deposit_link',
'tax', 'tax',
'tax1',
'tax2',
'tax3',
'organic', 'organic',
'kosher', 'kosher',
'vegan', 'vegan',
@ -755,6 +761,11 @@ class ProductsView(MasterView):
f.set_readonly('tax') f.set_readonly('tax')
# f.set_renderer('tax', self.render_tax) # f.set_renderer('tax', self.render_tax)
# tax1/2/3
f.set_readonly('tax1')
f.set_readonly('tax2')
f.set_readonly('tax3')
# brand # brand
if self.creating: if self.creating:
f.replace('brand', 'brand_uuid') f.replace('brand', 'brand_uuid')