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

Hello,

I'm currently migrate one of my module from Odoo11 to Odoo12.

But I have this message

Field mrp.bom.line.product_uom_id with unknown comodel_name 'product.uom'

But I've check this warning before and they said to check the depends in __manifest_.py and write 'product' in it. But it's already in.


Thanks in advance

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

There is no model "product.uom" in V12. Use "uom.uom"

original field declaration:-

product_uom = fields.Many2one(
'uom.uom', 'Unit of Measure',
related='product_tmpl_id.uom_po_id',
help="This comes from the product form.")
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Okay thank you so much for the help

Ảnh đại diện
Huỷ bỏ