Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2926 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
2
thg 5 25
764
2
thg 3 24
3260
1
thg 2 22
2143
No import button Đã xử lý
5
thg 11 21
12588
1
thg 3 17
3072