OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Custom Mass Action: Uncaught TypeError: "model" is required

This topic contains 2 replies, has 2 voices, and was last updated by  zhex900 6 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #29363

    zhex900
    Participant

    Hi,

    I am trying to implement a custom mass action. I used this thread thread as a guide.

    Have this javascript error:

    My code are here:
    To install the code. I run
    php app/console cache:clear –env=dev -vvv
    php app/console assets:install
    php app/console assetic:dump
    php app/console oro:requirejs:build

    1.assetic.yml

    2. actions.yml

    3. requirejs.yml

    4. autoallocate-action.js

    5. AutoAllocateMassAction.php

    6. AutoAllocateActionHandler.php

    7. services.yml

    8. datagrids.yml

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #29364

    jderdziak
    Participant

    Extend MassAction from: ‘oro/datagrid/action/mass-action’, instead of ModelAction

    autoallocate-action.js should look like this:

    #29365

    zhex900
    Participant

    Solved!
    I changed Extend MassAction from: ‘oro/datagrid/action/mass-action’, instead of ModelAction.

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top