Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1217 Переглядів

 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
2206
1
черв. 25
2836
2
трав. 25
2181
1
трав. 25
1346
1
лют. 25
38