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

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'],



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 24
1329
jsonb_path_query_array error แก้ไขแล้ว
1
มิ.ย. 24
3516
1
พ.ย. 21
6080
0
ก.ค. 24
4562
5
ธ.ค. 19
6573