Replacing back office pages
Back office forms can be configured to redirect to other URLs.
If a customer installs an app that manages products, they can make a product card always open in that app. (And likewise, employee forms can open in an employee app, and customer cards in a CRM app).
At the moment this is a manual CAFA configuration step that must be done individually on each account.
- Go to Settings > Configuration Admin > App configuration.
- Click “Add new configuration” to create a new setting.
- Fill in the form as follows:
Field | Value |
---|---|
Application | bo_ui |
Level | Company |
Level ID | leave empty |
Type | ui_replacements |
Name | Use any value, for example the name of the app that is going to handle the redirects |
Value Type | JSON |
Value | Define a JSON object as instructed below. |
Example (shown with all possible supported adjustments, all components optional):
{
"redirect_creation_form": [
{
"section": "prodin",
"url": "https://example.com/{CLIENT_CODE}/new-inventory-registration-page"
}
],
"redirect_edit_form": [
{
"section": "product",
"url": "{GOERP_URL}/{CLIENT_CODE}/{ISO_LANGUAGE}/edit-product-page?productID={RECORD_ID}"
}
],
"redirect_page": [
{
"section": "products",
"url": "https://example.com/{CLIENT_CODE}/product-list"
}
],
"add_tabs": [
{
"section": "orgperC",
"name": "metadata",
"title": {
"en": "Metadata",
"fr": "Métadonnées"
},
"url": "{GOERP_URL}/{CLIENT_CODE}/{ISO_LANGUAGE}/customer-metadata-page?customerID={RECORD_ID}"
}
],
"replace_tabs": [
{
"section": "orgperC",
"name": "contracts_new",
"title": {
"en": "A better tab for customer contracts"
},
"url": "{GOERP_URL}/{CLIENT_CODE}/{ISO_LANGUAGE}/customer-contracts-page?customerID={RECORD_ID}",
"replace": "orgperC_contracts"
}
]
}
Erply section name can be found from the URL: it’s the keyword following “§ion=…” Product card is product
,
inventory registration form is prodin
, employee form is orgperB
and so on.
The redirect URL supports placeholders:
{GOERP_URL}
- Base URL of Erply app store apps.{CLIENT_CODE}
- Account number{RECORD_ID}
- Record ID{LANGUAGE}
- Three-letter language code (used in Erply back office){ISO_LANGUAGE}
- Two-letter language code (used in app store apps)
As many JSON objects can be created as needed.