跳至內容
選單
此問題已被標幟
2 回覆
2914 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 25
752
2
3月 24
3179
1
2月 22
2140
5
11月 21
12569
1
3月 17
3047