Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2644 Переглядів

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



Аватар
Відмінити
Найкраща відповідь

Hi amr,

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

Thanks!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
4
жовт. 20
8693
3
лют. 24
10166
1
черв. 23
3441
0
лют. 23
2571
0
січ. 24
3658