5.1 Changelog

This page lists all the changes introduced in 5.1 releases. See also the release notes.

5.1.0 (2019-06-28)

Check the 5.1.0-rc1 and 5.1.0-rc2 Changelog for complete list of changes.

Enhancements

  • Only log when non-existing field is referenced in expressions (breaking change)

  • Properly handle expression errors

  • Prevent calling arbitrary methods with action (breaking change)

  • Add app startup/shutdown events

Bugs

  • Fix value assignment in EL expression

  • Fix duplicate results in number of attachments

Breaking Changes

  • Calling arbitrary methods from action-method or with call: is not allowed.

    All such methods should be annotated with @CallMethod annotation (com.axelor.meta.CallMethod). Use following shell command to find all the method calls in your code base:

    $ grep -P "(expr)(\s*=\s*)(\"call:([^\"]+\([^\"]+)\")" -r * -oh --include="*.xml" \
      | cut -d\" -f2 \
      | sed -E 's|call:\s*||g' | cut -d\( -f1 | sort -u
  • Scripting expressions in xml actions are now not silent on errors.

    All errors during expression evaluation except missing attribute error are propagated to the user so evaluation of such expressions will fail and ultimately actions too.

  • DMS permissions (requires manual intervention)

    DMS permissions are created and removed recursively for all children documents/folders. The perm.dms.file.__parent__ permission is no longer used. Also, DMS permissions are readonly once created, but can be removed.

    Remove DMS file related permissions (permissions with a name starting with perm.dms.file). Those permissions will be recreated and updated after adding new DMS permissions. Remove and add back DMS permissions on your documents from the DMS view.

  • The context.appLogo method should now use helper MetaFiles#getDownloadLink instead of returning MetaFile.

  • On ManyToOne fields, canEdit attribute is false by default now.

  • The freeSearch="name" to search on name field should be changed to freeSearch="actualNameField"

  • The cachable attribute on entity definition is now deprecated and replaced with cacheable.

    $ find -iregex ".*domains.*.xml" | xargs -l sed -i 's|cachable="|cacheable="|g'

5.1.0-rc2 (03-06-2019)

Bugs

  • Fix lost changes issue with child grid

  • Fix use of "member of" in domain expression

  • Fix duplicate DMS file results when several DMS permissions are matched

  • Fix hiding of error message div with IE

Enhancements

  • Upgrade to hotswap-agent 1.3.0

  • Set Monday as first day of week for French locale

  • Improve date formatting in calendar view with locale fr

  • Check for permission when downloading files

  • Validate decimal’s scale and precision attributes

5.1.0-rc1 (22-04-2019)

New Features

  • New event system similar to CDI 2.0 event api

  • Support for JPA event listeners

  • Complete re-write of view extensions

Enhancements

  • Major refactoring in auth api

  • Improved xml view handling

  • Prevent initial data fetch in grid view with x-no-fetch="true"

  • Support for custom action on chart dashlet with onAction attribute

  • Improved user preferences view

  • Add support for forcing user to change password

  • Logout user if password is changed

  • Add ability to specify free search fields

  • Improve DMS loading performance

  • Add menubar to cards view

  • Support for sharable DMS file URLs

  • Delete attachments when record is deleted

  • Check for DMS permissions when making zip

  • Give and remove DMS permissions recursively

  • Add image and pdf preview into DMS file form

  • Only generate menu for custom models if menu title is provided

  • Support for settings form width for custom model

  • Support for setting column sequence for custom model

  • Support for 'orderBy' on custom models

  • Support for label fields in custom model

  • Support for field permission on custom model and custom fields

  • Support for font-awesome icons in image-select widget

Bugs

  • Fix tag-select widget issue with custom fields

  • Fix @RequestScoped services in unit tests

  • Fix date search in grid view when user is in different time zone

  • Fix I18n message bundle cache causing wrong bundle update

  • Fix DMS file rename issue

  • Fix @RequestScoped services when used with quartz scheduler