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

i have a little store on Cs-Cart, and i'm moving to Odoo, testing the import from product

s it give me this error http://prntscr.com/e9mk3h

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

Hello,


As explain in the error message, product_template has a field categ_id which on is required !


categ_id = fields.Many2one(
 'product.category', 'Internal Category',
change_default=True, default=_get_default_category_id, domain="[('type','=','normal')]",
 required=True, help="Select category for the current product")


When you start with a fresh database, you have  "product.product_category_all" as valid xml_id .... 

That's the default value when you create a product via the UI. (_get_default_category_id)

 

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

Thanks for answer

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Product import xslx Đã xử lý
3
thg 8 25
935
2
thg 3 24
4077
1
thg 2 22
2295
No import button Đã xử lý
5
thg 11 21
12782
1
thg 3 17
3194