I need to set the order status of rights, I want my company's finances, in order to modify the state, only chekout option, for example: paid.

and more

CommentFileSizeAuthor
#6 status.PNG73.14 KBjoray

Comments

rszrama’s picture

Assigned: joray » Unassigned

Hmm, I'm struggling to understand your actual feature request here. Can you just edit the default Orders View to get what you need?

pcambra’s picture

I'll try to do a little translation :)

I think that the feature requested is to be able to restrict permissions per state/status.

Say your clerks can update an order status to paid but only management staff can push it to completed.

rszrama’s picture

Hmm, ok. If that's the case, there's no feature to be added to core. Instead a module would have to be developed that plugs into the entity access system to grant particular users access by order status / state.

pcambra’s picture

I'd say that actually the feature is some users not being able to update an order to a given state/status, nothing to do with viewing the order, but updating only to a subset of states/statuses.

https://skitch.com/pcambra/gmb5g/fullscreen

Can we restrict that using entity access?

Anyways I might be wrong as the initial message is not clear enough.

joray’s picture

Our company is to release an online ordering system, hope to achieve this function,
By role permission to access the order status, and can only update a state, is just a state, different departments in different order status update

joray’s picture

StatusFileSize
new73.14 KB

This means that

rszrama’s picture

Title: Set the order status of rights » Allow administrators to restrict available order statuses on order edit forms by role
Version: 7.x-1.0 » 7.x-1.x-dev
Component: Order » Contributed modules
Status: Active » Postponed

Changing the title and making this a contrib request. This would be easily doable through a contrib using hook_form_alter() and a custom settings form.

tonylegrone’s picture

Issue summary: View changes
Status: Postponed » Needs review

I was recently presented with this same need for a client and was able to build a solution that may fit for this issue.

I have created a sandbox module for everyone to test here: https://drupal.org/sandbox/tonylegrone/2217873

I'm currently using that in one production site, but I 'm not 100% sure if any negative side effects will be caused by it yet. So, please use with care.