Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1861 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
gru 23
1244
1
lip 23
2131
0
mar 25
3147
0
sie 22
2758
0
sty 22
76