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-autocomplete vn-one
field="addressData.address.agency"
field="addressData.address.defaultAgency"
url="/client/api/Agencies"
show-field="name"
value-field="id"

View File

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