Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2979 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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)

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks for answer

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Product import xslx แก้ไขแล้ว
3
ส.ค. 25
858
Import Products by SKU แก้ไขแล้ว
2
มี.ค. 24
3466
PRODUCT LISTS IMPORTING ISSUE แก้ไขแล้ว
1
ก.พ. 22
2204
No import button แก้ไขแล้ว
5
พ.ย. 21
12647
1
มี.ค. 17
3111