Skip to Content
Menu
This question has been flagged

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
0
Dec 23
1244
1
Jul 23
2131
0
Mar 25
3147
0
Aug 22
2757
0
Jan 22
76