Refactor pricing batch view to use master3

This commit is contained in:
Lance Edgar 2018-01-27 12:53:32 -06:00
parent 8eab3c5b36
commit 2cbe1b0049

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar
# Copyright © 2010-2018 Lance Edgar
#
# This file is part of Rattail.
#
@ -29,7 +29,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model
from tailbone import forms
from tailbone.views.batch import BatchMasterView2 as BatchMasterView
from tailbone.views.batch import BatchMasterView3 as BatchMasterView
class PricingBatchView(BatchMasterView):
@ -60,6 +60,19 @@ class PricingBatchView(BatchMasterView):
'executed_by',
]
form_fields = [
'id',
'description',
'min_diff_threshold',
'calculate_for_manual',
'notes',
'created',
'created_by',
'rowcount',
'executed',
'executed_by',
]
row_grid_columns = [
'sequence',
'upc',
@ -75,21 +88,6 @@ class PricingBatchView(BatchMasterView):
'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):
super(PricingBatchView, self).configure_row_grid(g)