跳至內容
選單
此問題已被標幟
1 回覆
7800 瀏覽次數

Hi,

I inherited a module in my own module.

class HPartnerregister(models.Model):
    _inherit = ['mail.thread']
    _name = "model.name.custom.module"

class ShopingRegister(models.Model):
    _inherit = ['shopping.product']

    @api.model
    def create(selfvals): 
        


I added the module in the Depend in file openerp.py my own module.    


    'depends': ['base','shopping_product'],


Now I have no problem upgrading my module, but I have an error in  upgrading the module I inherited from(shopping_product)
keyerror : 'model.name.custom.module'

Thank you for your help.

頭像
捨棄
最佳答案

Hello, 


Add Mail module in depends.

Like :     'depends': ['base','shopping_product','mail'],



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 24
1307
1
6月 24
3507
1
11月 21
6065
0
7月 24
4555
5
12月 19
6555