Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2526 Vues

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
Ignorer
Meilleure réponse

Hi amr,

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

Thanks!

Avatar
Ignorer
Publications associées Réponses Vues Activité
4
oct. 20
8583
3
févr. 24
10057
1
juin 23
3355
0
févr. 23
2491
0
janv. 24
3584