Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2661 Lượt xem

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



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi amr,

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

Thanks!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 10 20
8713
3
thg 2 24
10193
1
thg 6 23
3449
0
thg 2 23
2584
0
thg 1 24
3682