From b841ce664e84f15f23e6f0a95773f8be39fef545 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 24 May 2017 20:11:53 -0500 Subject: [PATCH] Make 'notes' field use textarea renderer by default, for all batches --- tailbone/views/batch/core.py | 1 + tailbone/views/purchasing/batch.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index b1f72e5f..c4185182 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -178,6 +178,7 @@ class BatchMasterView(MasterView): readonly=True) fs.cognized_by.set(label="Cognized by", renderer=forms.renderers.UserFieldRenderer) fs.executed_by.set(label="Executed by", renderer=forms.renderers.UserFieldRenderer) + fs.notes.set(renderer=fa.TextAreaFieldRenderer, size=(80, 10)) if self.creating and self.request.user: batch = fs.model diff --git a/tailbone/views/purchasing/batch.py b/tailbone/views/purchasing/batch.py index 64d359c3..1316b385 100644 --- a/tailbone/views/purchasing/batch.py +++ b/tailbone/views/purchasing/batch.py @@ -114,7 +114,6 @@ class PurchasingBatchView(BatchMasterView): fs.po_number.set(label="PO Number") fs.po_total.set(label="PO Total", readonly=True, renderer=forms.renderers.CurrencyFieldRenderer) fs.invoice_total.set(readonly=True, renderer=forms.renderers.CurrencyFieldRenderer) - fs.notes.set(renderer=fa.TextAreaFieldRenderer, size=(80, 10)) fs.append(fa.Field('vendor_email', readonly=True, value=lambda b: b.vendor.email.address if b.vendor.email else None))