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

Need help
I am using odoo 10. in module lunch I would like when click to select order, I want to get product from sales and not only product from lunch or product created in lunch to appear also in product of sales. anyone can help?

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

I changed

product_id = fields.Many2one('lunch.product''Product'required=True)

by this

product_id = fields.Many2one('product.product''Product'required=True)

but no effect after I updated my module getting Internal server error

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

Hi,

in the lunch module the product form is created separately does not inherit module product

if you want to change that you have to change this line: (\addons\\lunch\models/lunch.py)

product_id = fields.Many2one('lunch.product', 'Product', required=True)

by this

product_id = fields.Many2one('product.product', 'Product', required=True)


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