Conflito com instalação do modulo POS

Bug #992141 reported by Biadodi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Banking Addons
Fix Released
High
Unassigned

Bug Description

Depois que instalo account_banking não consigo mais instalar o módulo POS ,da a seguinte msg de erro:

Client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1004, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 948, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 962, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/opt/openerp/server/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/opt/openerp/server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/opt/openerp/server/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/opt/openerp/server/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/opt/openerp/server/openerp/modules/loading.py", line 196, in load_module_graph
    load_demo_xml(module_name, idref, mode)
  File "/opt/openerp/server/openerp/modules/loading.py", line 91, in <lambda>
    load_demo_xml = lambda *args: _load_data(cr, *args, kind='demo_xml')
  File "/opt/openerp/server/openerp/modules/loading.py", line 136, in _load_data
    tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
  File "/opt/openerp/server/openerp/tools/yaml_import.py", line 908, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "/opt/openerp/server/openerp/tools/yaml_import.py", line 843, in process
    self._process_node(node)
  File "/opt/openerp/server/openerp/tools/yaml_import.py", line 858, in _process_node
    self.process_python(node)
  File "/opt/openerp/server/openerp/tools/yaml_import.py", line 529, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "/opt/openerp/server/openerp/addons/point_of_sale/test/00_register_open.yml", line 1, in <module>
    -
  File "/opt/openerp/server/openerp/addons/point_of_sale/wizard/pos_open_statement.py", line 65, in open_statement
    statement_id = statement_obj.create(cr, uid, data, context=context)
  File "/opt/openerp/server/openerp/addons/account/account_cash_statement.py", line 231, in create
    res_id = super(account_cash_statement, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/server/openerp/addons/account/account_bank_statement.py", line 37, in create
    return super(account_bank_statement, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4191, in create
    self._validate(cr, user, [id_new], context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 1448, in _validate
    if not fun(self, cr, uid, ids):
  File "/opt/openerp/server/openerp/addons/account/account_bank_statement.py", line 175, in _check_company_id
    if statement.company_id.id != statement.period_id.company_id.id:
AttributeError: 'NoneType' object has no attribute 'id'

Quando instalo primeiro o POS não consigo instalar o account_banking!

Related branches

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi,

nothing to do with the POS module, I am afraid. Support for version 6.1 is still in preparation. See our statement here: https://launchpad.net/banking-addons/6.1.

If you did have the impression that you were installing a version explicitely compatible with OpenERP 6.1, may I ask you from what location you got it?

Cheers,
Stefan.

Revision history for this message
Biadodi (diegolido-msn) wrote :

I got it from brazilian banks location.
But I didn't realise that it wasn't compatible version with 6.1, sorry about the misunderstand.
I'm new in OpenERP community, and I'm trying to put it to work with my business, It's not so simple as appeared in first moment. :(

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Biadidi,

no problem. In fact, I am glad you are interested in the project and I feel I did not value your feedback properly in my first comment. It offers a new perspective on the impact that the banking addons have on a regular OpenERP system. I will make sure to test compatibility with the point_of_sale module when releasing the modules for 6.1, which will hopefully be soon.

Cheers,
Stefan.

Changed in banking-addons:
status: New → Confirmed
importance: Undecided → High
status: Confirmed → In Progress
Changed in banking-addons:
status: In Progress → Fix Committed
Changed in banking-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.