Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

In processes where components are shipped to suppliers and apart from receiving the final product, other secondary products of the production process are incoming, how to configure it with a subcontracting BOM?

Avatar
Buang
Jawaban Terbai

I have no idea why they disabled byproducts explicitly for subcontracting.

But you can disable this constraint in mrp_subcontracting

​ class MrpBom(models.Model):   
_inherit = 'mrp.bom'       

​@api.constrains('operation_ids', 'byproduct_ids', 'type')
​def _check_subcontracting_no_operation(self):   
​return True

You would afterwards need some push rule for the byproducts

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Des 23
1237
1
Jul 23
2130
0
Mar 25
3147
0
Agu 22
2755
0
Jan 22
76