跳至內容
選單
此問題已被標幟
1 回覆
1446 瀏覽次數

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















頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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?

相關帖文 回覆 瀏覽次數 活動
1
9月 23
3801
0
4月 19
3575
0
10月 24
1146
5
8月 24
46629
1
4月 24
1611