Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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 1 year, 1 month ago.

  • 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)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossossossosso