Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
10486 Widoki

I can i show product name or list of the products to the customer.

Hide all other information like quantity,cost price etc from the customer.

How can i configure this in sale.order.line?

Awatar
Odrzuć

You could just hide the fields in the view you don't want the customer to see. But you should write an extra module to do that.

Autor

Thanks Hartmut. But i'm not confident to create a new module with python code.

Autor

Can you help me solve the issue?

Well, you could just edit the sale.order.form view, search for the sale order lines and hide the fields. (e.g. <field name="price_unit" invisible="1"/>) However it's really not the way you should do it.

Autor

Thanks Hartmut...Let me check this.

Najlepsza odpowiedź

If you want to hide information(quantity,cost price) from list view to the customer. You have to put groups on that fields.

for eg: sale.order <field name="quantity" groups="base.group_sale_manager"/> <field name="cost" groups="base.group_sale_manager"/> <field name="price" groups="base.group_sale_manager"/>

This fields are only display on tree view when manager or admin are login.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lut 23
2241
2
gru 24
21166
0
wrz 24
1040
3
sie 24
2152
0
lut 24
1467