Skip to Content
Menu
This question has been flagged
2 Replies
14242 Views

I'm trying to install module portal purchase and get this error on installation. I've installed all necessary modules for Portal purchase and check the object named account_payment_term, this object is in account module. I can't understand what is the problem and search doesn't give me result.

OpenERP Server Error
Server Traceback (most recent call last):
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\openerp\addons\web\session.py", line 89, in send
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\netsvc.py", line 292, in dispatch_rpc
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\osv\osv.py", line 188, in execute_kw
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\osv\osv.py", line 131, in wrapper
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\osv\osv.py", line 197, in execute
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\osv\osv.py", line 185, in execute_cr
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\openerp\addons\base\module\module.py", line 424, in button_immediate_install
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\openerp\addons\base\module\module.py", line 475, in _button_immediate_function
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\pooler.py", line 39, in restart_pool
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\registry.py", line 218, in new
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\loading.py", line 345, in load_modules
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\loading.py", line 256, in load_marked_modules
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\loading.py", line 188, in load_module_graph
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\loading.py", line 76, in <lambda>
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\modules\loading.py", line 118, in _load_data
  File "C:\Program Files\OpenERP 7.0-20130908-231053\Server\server\.\openerp\tools\convert.py", line 930, in convert_csv_import
Exception: Module loading failed: file portal_purchase/portal_purchase\security/ir.model.access.csv could not be processed:
 Line 20 : No matching record found for external id 'account.account_payment_term' in field 'Object'
Avatar
Discard
Best Answer

One of the things that make this error occur is when you don't respect the order of security files, you have to put your .xml file that is related to security before the .csv file in your __ manifest __.py

Here's a simple example:

   'data': [
        'views/security.xml',
        'security/ir.model.access.csv',
        # ... other includes ...
    ]
Avatar
Discard
Best Answer

I'm new in Odoo but I have this error in this modification:

Module A/ Module B

In module B put the perm (security-->ir.model.access.csv) in the module A for example

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_B, B.manager,model_B,<your group>, 1,1,1,1

access_A, A.manager,model_A,<your group>, 1,1,1,1 <-------Error "Not matching......external id 'model_A' in field 'Object'"

 

But..... I'm not sure about this problem,but if you get to do some good here I leave

 

 

Avatar
Discard