Please, you know how to hide margin for sale for specific user? I do not know where I need to change in view sale_view.xml ? I can not get the fields in this view
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ờ
In Version 7.0 and trunk you have to modify in sale_margin -> sale_margin_view.xml
There are two ways to do this :
Using group : Create a group and add all the users to whom you want to display that field and add this group to 'margin' field. Example : <field name="margin" groups="base.group_user"/>
Using attrs : (This is static one) You can use attrs="{'invisible': [('user_id', '=', uid)]}" In place of uid you have to pass the user_id for user you want to hide the field. Example : <field name="margin" attrs="{'invisible': [('user_id', '=', 1)]}"/>
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ý