Skip to Content
Menu
This question has been flagged
1 Atsakyti
2521 Rodiniai

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



Portretas
Atmesti
Best Answer

Hi amr,

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

Thanks!

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
spal. 20
8572
3
vas. 24
10054
1
birž. 23
3352
0
vas. 23
2489
0
saus. 24
3582