I would like to hide the purchase tab in product template from anyone other than purchase user and purchase admin. How can i do this ? Please help. Thank you. I am using odoo 16 community version.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
You need to inherit product form view as below:
<record id="product_template_form_view_inherit_custom" model="ir.ui.view">
<field name="name">product.template.form.inherit.custom</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='purchase']" position="attributes">
<attribute name="groups">purchase.group_purchase_user,purchase.group_purchase_manager</attribute>
</xpath>
</field>
</record>
Sorry, I'm new to odoo. Could you please give me some detailed steps ?
should I in do this to the source code or in the web interface ?
Thank you.
If you are using Odoo Enterprise with studio app, you can do it from studio app. otherwise you need to develop your custom addon and install it in your system.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký