Hi everyone.
I am trying to create a relate field on the ProductTemplates module which links to TaxRates but am struggling to find the syntax to get it right. My latest attempt is:
array( 'name' => 'product_vat_rate', 'label' => 'LBL_PRODUCT_VAT_RATE', 'type' => 'relate', 'link' => 'taxrates', 'table' => 'taxrates', 'dbType' => 'id', 'module' => 'ProductTemplates', 'default_value' => NULL, 'help' => '', 'comment' => '', 'audited' => false, 'mass_update' => false, 'duplicate_merge' => false, 'reportable' => true, 'importable' => 'false', 'ext1' => NULL, 'ext2' => NULL, 'ext3' => NULL, 'ext4' => NULL, ),
But this seems to create the relate field fine, but it links back to itself (So ProductTemplates).
Has anyone had any feedback around this? I've checked documentation from sugar but it's not clear on the best way to do this via the manifest.
Thanks,
Daniel