Skip to Content
मेन्यू
This question has been flagged
1 Reply
2688 Views

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



Avatar
Discard
Best Answer

Hi amr,

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

Thanks!

Avatar
Discard
Related Posts Replies Views Activity
4
अक्तू॰ 20
8758
3
फ़र॰ 24
10230
1
जून 23
3470
0
फ़र॰ 23
2594
0
जन॰ 24
3701