Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7214 มุมมอง

Hi All,

I want to asking something. We are using Odoo9.0 version. In Sale Order Overflow;

For user : I want to hide confirm Sale button.

For Administrator : I want to show confirm Sale button.

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

How can get solve this issue?

อวตาร
ละทิ้ง

Hi, May be this link solve the problem. In this link Confirm Sale button made invisible, so you can a group in same way.

https://stackoverflow.com/questions/40170027/hide-confirm-sale-button-in-sale-order-form-view-in-odoo-9

คำตอบที่ดีที่สุด

in xml file, in the confirm button, just add,

<attribute name="groups">base.group_sale_manager</attribute>

 

Kind regards,


อวตาร
ละทิ้ง

How do you get the button from the inherit xml?

Can you show me some more xml code to get it?

Thanks

คำตอบที่ดีที่สุด

You can create new group as in this link https://www.odoo.com/forum/help-1/question/how-to-add-a-new-group-for-an-application-odoo-8-73629 and assign it to confirm button by inherit sales order form view and add groups="xml_id_for_group"


อวตาร
ละทิ้ง