We are using EspoCRM 4.0.3, created custom fields on Account and now want to display these custom fields on linked entities like IncomingInvoice.
Relationship "Many-to-One" from incomingInvoices to Accounts (Account has incomingInvoices)
I found an older disscussion using
http://forum.espocrm.com/forum/devel...y-s-properties
So I defined a new field in incomingInvoices:
After a rebuild I get a HTTP 500 on the incomingInvoices list view even if I don't add fields to the list view:
after rebuild I get an empty json from /api/v1/IncomingInvoice
in data/cache/application/ormMetadata.php the required relation is there
Questions:
How can I add a foreign field to a view?
How can I enforce error logging since in the espo log no entries are shown when calling the url?
Thanks a lot in advance vor any hint.
Relationship "Many-to-One" from incomingInvoices to Accounts (Account has incomingInvoices)
I found an older disscussion using
Code:
"type": "foreign"
So I defined a new field in incomingInvoices:
After a rebuild I get a HTTP 500 on the incomingInvoices list view even if I don't add fields to the list view:
Code:
"accountInfo" : { "type" : "foreign", "link" : "account", "foreign" : "description" }
in data/cache/application/ormMetadata.php the required relation is there
Code:
'accountInfo' => array ( 'type' => 'foreign', 'relation' => 'account'
How can I add a foreign field to a view?
How can I enforce error logging since in the espo log no entries are shown when calling the url?
Thanks a lot in advance vor any hint.
Comment