跳至内容
菜单
此问题已终结

Hi, is it possible to customize the barcode app (odoo 17). We want to add pictures into the lines and change some of the text. Maybe someone can give a hint. I have tried almost everything to just see if i could make a small change on the view, but with no luck.

形象
丢弃
最佳答案

Hi,

It is possible to customize the barcode app.

Look at the stock_barcode module in the odoo addons. That's where the js/xml files are located for the views. it's not as straightforward as modifying normal backend views, but it can be done.

Most of the data handling logic is located in lazy_barcode_cache and in the js models. 

Here is an example of a barcode app customization:

That was done almost purely in javascript, the only changes to the models required were the addition of 2-3 methods to allow the barcode_cache to be able to fetch all the fields needed.

形象
丢弃

This example perfectly illustrates what I want to achieve—displaying packaging information at the bottom of each product line. Could you provide more details on how to implement this?

If you want to give me your email address, I can send you the source code for the module for you to check out!

For sure! j.polydoros@dileanity.com
Thanks

Can you send the source code to me aswell? anders@elav.dk
Thanks!

相关帖文 回复 查看 活动
1
4月 25
217
0
2月 25
362
0
1月 25
465
2
12月 24
600
1
1月 25
451