Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2916 Vues

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

Avatar
Ignorer
Meilleure réponse

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)

 

Avatar
Ignorer
Auteur Meilleure réponse

Thanks for answer

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mai 25
754
2
mars 24
3197
1
févr. 22
2140
5
nov. 21
12570
1
mars 17
3047