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

I create a custom module which create a function in product module 

to import products from cvs file and it work fine in community version 

import csv
from odoo import api, models

class ProductProduct(models.Model):
_inherit = 'product.template'

def process_csv_file(self, file_path):
# and rest of code

but when I convert it to zip and import it in enterprise version
I get this Error

AttributeError: 'product.template' object has no attribute 'process_csv_file'

so why this error



Awatar
Odrzuć
Najlepsza odpowiedź

Hi amr,

Add depends as product in __manifest__.py file, then try to import zip.

Thanks!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
paź 20
8434
3
lut 24
9916
1
cze 23
3237
0
lut 23
2382
0
sty 24
3449