Include tax1 thru tax3 flags in form fields for product view page
This commit is contained in:
parent
c874e879c1
commit
79be69f8c1
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue