Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2889 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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)

 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanks for answer

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mai 25
731
2
mar. 24
2968
1
feb. 22
2115
5
nov. 21
12537
1
mar. 17
3032