client/skr/components/GlAccountChooser.cjsx in stockor-0.4.0 vs client/skr/components/GlAccountChooser.cjsx in stockor-0.5.0
- old
+ new
@@ -7,11 +7,11 @@
name: React.PropTypes.string
getDefaultProps: ->
label: 'Account', name: 'gl_account'
- dataObjects:
+ modelBindings:
query: ->
new Lanes.Models.Query({
syncOptions: @props.syncOptions, autoRetrieve: true
src: Skr.Models.GlAccount.all, fields: [
{id:'id', visible: false}
@@ -32,7 +32,8 @@
<LC.SelectField
queryModel={Skr.Models.GlAccount}
choices={Skr.Models.GlAccount.all.models}
labelField="combined_name"
model={@props.model}
+ filter='contains'
{...props}
/>