콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7875 화면

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
1365
1
6월 24
3589
1
11월 21
6175
0
7월 24
4652
5
12월 19
6658