Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-05-05 13:32:07 +02:00
parent f7ec186a77
commit 0da217e9bc
2 changed files with 9 additions and 1 deletions

View File

@ -31,7 +31,7 @@
</vn-horizontal> </vn-horizontal>
<vn-horizontal> <vn-horizontal>
<vn-autocomplete vn-one <vn-autocomplete vn-one
field="addressData.address.agency" field="addressData.address.defaultAgency"
url="/client/api/Agencies" url="/client/api/Agencies"
show-field="name" show-field="name"
value-field="id" value-field="id"

View File

@ -37,6 +37,9 @@
}, },
"default": { "default": {
"type": "boolean" "type": "boolean"
},
"defaultAgency": {
"type": "Number"
} }
}, },
"validations": [], "validations": [],
@ -50,6 +53,11 @@
"type": "hasOne", "type": "hasOne",
"model": "Client", "model": "Client",
"foreignKey": "id" "foreignKey": "id"
},
"defaultAgency": {
"type": "hasOne",
"model": "Agency",
"foreignKey": "id"
} }
}, },
"acls": [ "acls": [