Make 'notes' field use textarea renderer by default, for all batches

This commit is contained in:
Lance Edgar 2017-05-24 20:11:53 -05:00
parent 346bb48f9c
commit b841ce664e
2 changed files with 1 additions and 1 deletions

View file

@ -178,6 +178,7 @@ class BatchMasterView(MasterView):
readonly=True) readonly=True)
fs.cognized_by.set(label="Cognized by", renderer=forms.renderers.UserFieldRenderer) fs.cognized_by.set(label="Cognized by", renderer=forms.renderers.UserFieldRenderer)
fs.executed_by.set(label="Executed 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: if self.creating and self.request.user:
batch = fs.model batch = fs.model

View file

@ -114,7 +114,6 @@ class PurchasingBatchView(BatchMasterView):
fs.po_number.set(label="PO Number") fs.po_number.set(label="PO Number")
fs.po_total.set(label="PO Total", readonly=True, renderer=forms.renderers.CurrencyFieldRenderer) fs.po_total.set(label="PO Total", readonly=True, renderer=forms.renderers.CurrencyFieldRenderer)
fs.invoice_total.set(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, fs.append(fa.Field('vendor_email', readonly=True,
value=lambda b: b.vendor.email.address if b.vendor.email else None)) value=lambda b: b.vendor.email.address if b.vendor.email else None))