Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2883 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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)

 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks for answer

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 25
728
2
mar 24
2965
1
lut 22
2113
No import button Rozwiązane
5
lis 21
12531
1
mar 17
3032