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 = {
|
||||
'upc': "UPC",
|
||||
'status_code': "Status",
|
||||
'tax1': "Tax 1",
|
||||
'tax2': "Tax 2",
|
||||
'tax3': "Tax 3",
|
||||
}
|
||||
|
||||
grid_columns = [
|
||||
|
@ -131,6 +134,9 @@ class ProductsView(MasterView):
|
|||
'cost',
|
||||
'deposit_link',
|
||||
'tax',
|
||||
'tax1',
|
||||
'tax2',
|
||||
'tax3',
|
||||
'organic',
|
||||
'kosher',
|
||||
'vegan',
|
||||
|
@ -755,6 +761,11 @@ class ProductsView(MasterView):
|
|||
f.set_readonly('tax')
|
||||
# f.set_renderer('tax', self.render_tax)
|
||||
|
||||
# tax1/2/3
|
||||
f.set_readonly('tax1')
|
||||
f.set_readonly('tax2')
|
||||
f.set_readonly('tax3')
|
||||
|
||||
# brand
|
||||
if self.creating:
|
||||
f.replace('brand', 'brand_uuid')
|
||||
|
|
Loading…
Reference in a new issue