Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7790 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

Hello, 


Add Mail module in depends.

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



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 24
1302
1
cze 24
3502
1
lis 21
6061
0
lip 24
4552
5
gru 19
6549