Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2727 มุมมอง

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!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ต.ค. 20
8841
3
ก.พ. 24
10270
1
มิ.ย. 23
3488
0
ก.พ. 23
2635
0
ม.ค. 24
3728