İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1301 Görünümler

Hello All!

I have modified the default Dymop label view (product.report_simple_label_dymo) for our purposes (bigger font on the price, Internal Reference barcode, Compare at Price, etc.) I'll share it below in case anyone else is looking for something similar.

Of course, the view gets overwritten every time there is an upgrade, so I'd like to learn the correct way to keep that from happening.

Thanks in advance!

--------------------------------



















MSRP















Avatar
Vazgeç
En İyi Yanıt

Hi,

It seems the added code part is missing from the question. Anyway, i believe you are directly editing the view from the user interface.

If you need to do it from user interface, you have to create an inherited view and modify the original view, so that the changes wont be lost during the upgrade.

If you think, its hard for you to create an inherited view, you can directly modify the view from user interface and set noupdate as True for the record. Enable debug mode, open the related ir.ui.view, click debugger button and click view meta data and click on no update as True.

If you do it from code, via custom module, it will be easier, either you can completely rewrite the view or via inherited view.

Thanks

Avatar
Vazgeç
Üretici

Thanks for replying. Sorry about the code issue, I assumed the system would sanitize, but apparently not.

We are on the hosted version of Odoo, so I don't have access to the backend (even if I wanted to create a module - which I'm not qualified to do ;).

I figured that I might need to create a new inherited view, but I need a bit more hand-holding to do it correctly. Would you be willing to explain in more detail or point me to a document that describes the process?

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 23
3307
0
Nis 19
3332
0
Eki 24
933
5
Ağu 24
45753
1
Nis 24
1346