Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1469 Prikazi

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
Opusti
Best Answer

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
Opusti
Avtor

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?

Related Posts Odgovori Prikazi Aktivnost
1
sep. 23
3817
0
apr. 19
3590
0
okt. 24
1150
5
avg. 24
46671
1
apr. 24
1637