Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
1222 Visualizações

 Someone can help me ? i have this error when i try to install my new module.

"/opt/odoo17/odoo17/odoo/models.py", line 719, in _build_model raise TypeError("Model %r does not exist in registry." % name) TypeError: Model 'payment.acquirer' does not exist in registry. The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPC_ERROR at makeErrorFromResponse (http://192.168.90.39:8069/web/assets/debug/web.assets_web.js:27903:19) at XMLHttpRequest. (http://192.168.90.39:8069/web/assets/debug/web.assets_web.js:27951:27 

here my manifest code : 


{

    'name': 'PAYMENT',

    'version': '1.0',

    'category': 'Payment',

    'summary': 'Integration',

    'description': 'Module',

    'depends': ['base', 'payment', 'account'],

    'data': [

        'ir.model.access.csv',

        'views/payment_acquirer_views.xml',

    ],

    'installable': True,

    'application': False,

}



Avatar
Cancelar
Autor Melhor resposta

Here my init code in models


from . import payment_acquirer

from . import payment_api





Avatar
Cancelar
Melhor resposta

'depends': [ 'account', 'account_accountant', 'sale', 'purchase' , 'base' ],

It's possible to add more modules to the depends section. 

For data files like ir.model.access.csv, a security folder is required, so the correct path would be security/ir.model.access.csv

Make sure the Model 'payment.acquirer' already exists in models/__init__.py

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
jul. 25
2209
1
jun. 25
2844
2
mai. 25
2181
1
mai. 25
1348
1
fev. 25
38