Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1211 Представления

 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,

}



Аватар
Отменить
Автор Лучший ответ

Here my init code in models


from . import payment_acquirer

from . import payment_api





Аватар
Отменить
Лучший ответ

'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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
июл. 25
2199
1
июн. 25
2824
2
мая 25
2177
1
мая 25
1344
1
февр. 25
38