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

Forums OroCRM OroCRM – How do I? Questions Prevent editing an Opportunity at a certain state/step

This topic contains 2 replies, has 3 voices, and was last updated by  Manuel Capinha 1 year, 1 month ago.

  • Creator
  • #29337



    I’ve implemented a custom workflow for managing our Opportunities.
    At a certain step, the user has to request management approval of the opportunity. I can apply a rule to prevent step transition but I would also like to block editing of the opportunity at that state.

    I’ve looked around the documentation and I can’t any way to restrict editing (to a group that has the edit role always available) based on the opportunity status.

    Can someone point me in the best direction, please ?

    Kind regards,

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


    Hi, manuel.capinha!

    If I correctly understand you question, to block editing of the Opportunity with some state you can use, for example, Symfony serurity voters (see

    For example, create a security voter class like this

    and then register it as security voter


    Manuel Capinha

    This looks like exactly what I was needing.
    Thanks a lot!

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
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for