コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2540 ビュー

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
10月 20
8593
3
2月 24
10067
1
6月 23
3361
0
2月 23
2502
0
1月 24
3591