跳至内容
菜单
此问题已终结
4 回复
14490 查看

Hi friens,

I want asking something. We are using OpenERP 7 version. İn Purchase Order Overflow;

For user : I want to hide confirm order button. For Administrator : I want to show confirm order button.

Now confirm order button showing everyone.(Users and Administrators)

What can i do for this

形象
丢弃
最佳答案

Hi,

in purchase/purchase_view.xml line 168 :

<button name="purchase_confirm" states="draft" string="Confirm Order" />

add group_purchase_manager for this button:

<button name="purchase_confirm" states="draft" string="Confirm Order"
 groups="purchase.group_purchase_manager"  />

update module purchase .Settings>>Installed Modules>>Purchase Management and clik Upgrade

how it works, but it is recommended to create a new module to change the button.

Bye.

形象
丢弃
编写者

Thanks for your answer. I did your solution. But button still showing.

update module purchase .Settings>>Installed Modules>> search module Purchase Management and clik upgrade

Solved. I want same requirement in sales order. I hide confirm sale button from sale order. Now i want to show only product list to the customer. How can i implement this?

Hello Remya , Can you tell me how was you able to solve the problem based on purchase? I applied the changes as said by Borni but still I am getting the same problem.

Did you login as admin?

Did you login as admin?

最佳答案

Set the groups attribute in the XML tag for that button to filter down to the external/XML ID of the groups you want it to apply to. So for example:

<button name="confirm_order" string="Confirm Order" groups="base.group_erp_manager"/>

This is (in 6.1 at least) the group for Administration Access Rights, but should also apply to users with Configuration permission, since that group is a subset of Access Rights already.

形象
丢弃
编写者

Thanks for your answer.

I did your solution. But button still showing.

Make sure you are updating module after changing xml file.

编写者 最佳答案

Thanks for your answer.

I did your solution. But button still showing.

形象
丢弃
最佳答案

Hi,

You have to use "groups" attribute on button tag. Make sure that only administrator user in that group.

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

形象
丢弃
相关帖文 回复 查看 活动
2
5月 25
2250
3
12月 24
6634
1
7月 24
3209
1
6月 24
2215
2
6月 24
3110