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

My manufacturing order has a custom many2one field. Here are codes

class cs_production(models.Model):

_inherit = 'mrp.production'

cust_id = fields.Many2one('res.partner', string='Client', required=False, change_default=True, index=True, copy=True)

If I create a new manufacturing order which uses nested BOM, obviously odoo generates multiple manufacturing orders according the structure of bom.

The problem is this, if odoo generates N manufacturing orders based on bom selected, the cust_id field value appears only in first manufacturing order where as it disappears from next orders.

Please guide me how to solve this problem. I'm using odoo v. 10

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

Hello Sahid,

Yes, all nested and main MO will have customer you have set. But for this you will need to override the methods that create nested MOs and pass the customer to nested MOs.

HINT: When main MO is processed, system will create the procurement and based on the configuration, nested MOs will be generated when procurements will run.

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com  website: http://www.erpharbor.com
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Multi layered BOMs แก้ไขแล้ว
2
ส.ค. 25
683
2
ส.ค. 24
4291
1
มี.ค. 24
2010
2
มิ.ย. 21
3252
0
มี.ค. 21
2000