Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7918 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

Hello, 


Add Mail module in depends.

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



Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
set 24
1402
1
giu 24
3673
1
nov 21
6221
0
lug 24
4683
5
dic 19
6748