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ờ
Hi Anton,
I am assuming that you have done below changes in the sales order's form view(if this is not the case please share more information regarding the issue):
- you have restricted field price_unit with groups="sales_team.group_sale_manager" somewhere in the view
- used this field in the context
So, you can add the same field with invisible 1 in the order_line code defined in the form view.
Thanks.
I'm trying to hide the "Unit Price"(price_unit) in sales order line and only show it to specific group which is sales_team.group_sale_manager.
Hi Anton,
just below your change, add <field name="price_unit" invisible="1"/>, So this field won't be visible to any user and backend process will get price_unit info from this field, and your field will be visible to only sales_team.group_sale_manager group user.
I tried to inherit the view of sale.order.form, and added the <field name="price_unit" invisible="1"/> like what you said. It only adds another unit price column, and the original unit price still can't be hidden.
Hi Aton,
That is because of you have added the field in the tree view, you need to add column_invisible instead of the invisible.
Thanks
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 10 16
|
8573 | ||
|
2
thg 4 25
|
1010 | ||
Sales Order From Excel Sheets
Đã xử lý
|
|
1
thg 11 24
|
1699 | |
|
0
thg 9 24
|
1109 | ||
|
0
thg 3 20
|
3690 |