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

Hi, Can someone show me how to delete sales price (field: list_price) from the dymo label? For some reason I can't modify the dymo label template at all... Thank you in advance!

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

Hi,
You can inherit the report template:  report_simple_label_dymo and achieve this. You can locate the node using xpath and remove the price or if you are not from technical side, you can directly modify the original view from the views menu in debug mode

* activate developer mode
* navigate to settings -> technical -> user interface -> views
* search for report_simple_label_dymo
* comment or remove the price section

Recommend way is by inherited view.

1. How To Inherit And Modify Existing PDF Reports in Odoo

2. Modify report from ui in odoo



Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you so much Niyas. I managed to create inherited view and I named it "report_simple_label_dymo_inherit". I inherited the view called "report_simple_label_dymo". Then I removed the price section from the "report_simple_label_dymo_inherit" and it worked! Now the only problem is that Odoo prints both of the labels when I press print labels button. I tried to deactivate the original view with price called "report_simple_label_dymo", but it didn't work. Hope you can help.

Câu trả lời hay nhất

Can I add a second label layout, make a small change, and be able to choose which one I want to print?

To be honest I find it quite disturbing that for basic things like small changes in layouts like this technical knowledge or support from a developer is needed...

Ảnh đại diện
Huỷ bỏ

well ... I have found out for myself:
- either you buy a third-party app to make the adjustments
- or you just have to deal with the structure of the database and programming
- or hire someone else ...

Unfortunately, that's the way it is. I would have liked it to be easier.

Tác giả Câu trả lời hay nhất

Thank you so much Niyas. I managed to create inherited view and I named it "report_simple_label_dymo_inherit". I inherited the view called "report_simple_label_dymo". Then I removed the price section from the "report_simple_label_dymo_inherit" and it worked! Now the only problem is that Odoo prints both of the labels when I press print labels button. I tried to deactivate the original view with price called "report_simple_label_dymo", but it didn't work. Hope you can help.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 23
1315
0
thg 10 24
1390
1
thg 6 24
1474
1
thg 4 24
1875
0
thg 10 23
1413