Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6288 Lượt xem

Hello,

When selecting a product it is possible for a user to click 'Print'->'Product cost structure'. Is this something which is defined in an xml file? I cannot find anything about it in product.normal.form.

I would like to alter it so that this feature is no longer available.

Thank you for the help!

Lawrence

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

An easy way to do this from within the UI: either create security settings on the report or the window action.

Window action

Go to Settings->Technical->Actions->Window actions. Then search for "Product Cost Structure" and add a group to the security tab.

Report

Go to Settings->Technical->Actions->Reports. Then search for "Cost Structure" and add a group to the security tab.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you are creating custom module then you can delete the action from Product form Print option.

Try this:

<delete model="ir.actions.act_window" id="mrp.action_view_mrp_product_price_wizard"/>

Add this code in your xml file and update your custom module.


If you are not creating custom module and want to change in core addons then go to mrp/wizard/mrp_price_view.xml for view and mrp_price.py for object. If you only want to remove action comment <act_window name="Product Cost Structure" window and then update mrp module.

Have a look at Product Cost Structure.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 9 17
8169
1
thg 3 15
4417
1
thg 3 15
6083
2
thg 3 15
9929
0
thg 11 24
983