Refactor pricing batch view to use master3
This commit is contained in:
parent
8eab3c5b36
commit
2cbe1b0049
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2017 Lance Edgar
|
# Copyright © 2010-2018 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -29,7 +29,7 @@ from __future__ import unicode_literals, absolute_import
|
||||||
from rattail.db import model
|
from rattail.db import model
|
||||||
|
|
||||||
from tailbone import forms
|
from tailbone import forms
|
||||||
from tailbone.views.batch import BatchMasterView2 as BatchMasterView
|
from tailbone.views.batch import BatchMasterView3 as BatchMasterView
|
||||||
|
|
||||||
|
|
||||||
class PricingBatchView(BatchMasterView):
|
class PricingBatchView(BatchMasterView):
|
||||||
|
@ -60,6 +60,19 @@ class PricingBatchView(BatchMasterView):
|
||||||
'executed_by',
|
'executed_by',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
form_fields = [
|
||||||
|
'id',
|
||||||
|
'description',
|
||||||
|
'min_diff_threshold',
|
||||||
|
'calculate_for_manual',
|
||||||
|
'notes',
|
||||||
|
'created',
|
||||||
|
'created_by',
|
||||||
|
'rowcount',
|
||||||
|
'executed',
|
||||||
|
'executed_by',
|
||||||
|
]
|
||||||
|
|
||||||
row_grid_columns = [
|
row_grid_columns = [
|
||||||
'sequence',
|
'sequence',
|
||||||
'upc',
|
'upc',
|
||||||
|
@ -75,21 +88,6 @@ class PricingBatchView(BatchMasterView):
|
||||||
'status_code',
|
'status_code',
|
||||||
]
|
]
|
||||||
|
|
||||||
def configure_fieldset(self, fs):
|
|
||||||
fs.configure(
|
|
||||||
include=[
|
|
||||||
fs.id,
|
|
||||||
fs.description,
|
|
||||||
fs.min_diff_threshold,
|
|
||||||
fs.calculate_for_manual,
|
|
||||||
fs.notes,
|
|
||||||
fs.created,
|
|
||||||
fs.created_by,
|
|
||||||
fs.rowcount,
|
|
||||||
fs.executed,
|
|
||||||
fs.executed_by,
|
|
||||||
])
|
|
||||||
|
|
||||||
def configure_row_grid(self, g):
|
def configure_row_grid(self, g):
|
||||||
super(PricingBatchView, self).configure_row_grid(g)
|
super(PricingBatchView, self).configure_row_grid(g)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue