Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4260 มุมมอง

Hi,

I would like to implement custom version of "Duplicate" function for product. In my case, I will not only duplicate existing product, but also duplicate his BOM together with work plan. Could somebody give advice how to do it ?

Any help will be appreciated

 

อวตาร
ละทิ้ง

Great question, Sody, my fellow Odoo enthusiast. I know that the question was asked just recently and I don't want to appear impatient but has anyone found a solution yet?

How about override copy method and implement your changes?

คำตอบที่ดีที่สุด

Hi,

This app is able to to duplicate BOM on duplicating a product
https://apps.odoo.com/apps/modules/16.0/duplicate_product_bom/

Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Sody,

what we usually do in cases like these is debugging the process first. That takes a few hours but it's very interesting and you learn to appreciate the magic of the Odoo experts. They are true artists. Then we override the original function, make a call to the parent function and add our new logic. Usually we then debug for another few hours to fix the newly added errors.

Does that help? We are still in school but we started with Odoo because it is so much fun!!!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 24
15328
0
ต.ค. 17
2582
1
ก.ค. 16
10793
0
มี.ค. 15
3777
1
มี.ค. 15
7444