Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
1996 Lượt xem

Hi,

I have the following products, which I can buy:

- String (UOM: km)
- Reel
- Reel of 400m string
- Reel of 200m string

I have a subcontractor who takes 1km of string and 3 reels. They turn that into 2 reels of 400m string and 1 reel of 200m string. All three are tracked by serial number, however, the raw goods are not.

What's the best way to set this BOM up?

Cheers

Ảnh đại diện
Huỷ bỏ
Tác giả

Is this such an unusual thing that nobody has an answer?

Tác giả Câu trả lời hay nhất

Thank you for your suggestions. I will look into this

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
Please go through our blog on how to set BOM in Odoo 16

https://www.cybrosys.com/blog/how-to-configure-bill-of-materials-in-odoo-16-erp


Hope it helps

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Yeah, i am not really sure why but they explicitly disallow by-products on subcontracting ...


https://github.com/odoo/odoo/pull/75041


A quick test on 15.0 shows you can disable the constraint and it works.



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

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



But for your case you can of course just create 2 boms, one for a 200m reel  consuming 1 reel and 0.2km of string and like wise for the 400m reel.


and order those together (perhaps even using a kit)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
2144
3
thg 9 25
1873
2
thg 8 25
7655
3
thg 6 25
3752
0
thg 11 24
1528