Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2639 Представления

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
8687
3
февр. 24
10164
1
июн. 23
3437
0
февр. 23
2566
0
янв. 24
3658