Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2648 Представления

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 Ответы Просмотры Активность
2
мая 25
608
2
мар. 24
2554
1
февр. 22
2008
No import button Решено
5
нояб. 21
12280
1
мар. 17
2950