Be explicit about fieldset for pricing batch rows
Seems helpful to investigate these sometimes...
This commit is contained in:
parent
9ebce976c1
commit
49c9bbbbee
|
@ -96,10 +96,35 @@ class PricingBatchView(BatchMasterView):
|
||||||
|
|
||||||
def _preconfigure_row_fieldset(self, fs):
|
def _preconfigure_row_fieldset(self, fs):
|
||||||
super(PricingBatchView, self)._preconfigure_row_fieldset(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.old_price.set(renderer=forms.renderers.CurrencyFieldRenderer)
|
||||||
fs.new_price.set(renderer=forms.renderers.CurrencyFieldRenderer)
|
fs.new_price.set(renderer=forms.renderers.CurrencyFieldRenderer)
|
||||||
fs.price_diff.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):
|
def includeme(config):
|
||||||
PricingBatchView.defaults(config)
|
PricingBatchView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue