Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2675 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

Thanks for answer

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 25
628
2
mrt. 24
2578
1
feb. 22
2026
5
nov. 21
12304
1
mrt. 17
2961