From 49c9bbbbee7ca07e6e35b916472bdf9fc4193d9f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 2 Feb 2017 15:34:32 -0600 Subject: [PATCH] Be explicit about fieldset for pricing batch rows Seems helpful to investigate these sometimes... --- tailbone/views/batch/pricing.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index 200de6e6..0b16e853 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -96,10 +96,35 @@ class PricingBatchView(BatchMasterView): def _preconfigure_row_fieldset(self, fs): super(PricingBatchView, self)._preconfigure_row_fieldset(fs) + fs.upc.set(label="UPC") + fs.vendor.set(renderer=forms.renderers.VendorFieldRenderer) fs.old_price.set(renderer=forms.renderers.CurrencyFieldRenderer) fs.new_price.set(renderer=forms.renderers.CurrencyFieldRenderer) fs.price_diff.set(renderer=forms.renderers.CurrencyFieldRenderer) + def configure_row_fieldset(self, fs): + fs.configure( + include=[ + fs.sequence, + fs.product, + fs.upc, + fs.brand_name, + fs.description, + fs.size, + fs.department_number, + fs.department_name, + fs.vendor, + fs.regular_unit_cost, + fs.discounted_unit_cost, + fs.old_price, + fs.new_price, + fs.price_diff, + fs.price_margin, + fs.price_markup, + fs.status_code, + fs.status_text, + ]) + def includeme(config): PricingBatchView.defaults(config)