Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2536 Weergaven

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
Annuleer
Beste antwoord

Hi amr,

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

Thanks!

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
okt. 20
8584
3
feb. 24
10061
1
jun. 23
3358
0
feb. 23
2498
0
jan. 24
3587