Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2913 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

Thanks for answer

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 25
752
2
mar 24
3176
1
feb 22
2140
5
nov 21
12569
1
mar 17
3047