تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2724 أدوات العرض

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!

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
أكتوبر 20
8829
3
فبراير 24
10263
1
يونيو 23
3488
0
فبراير 23
2634
0
يناير 24
3725