← Back to team overview

avanzosc team mailing list archive

[Bug 849531] Re: Bug en la creación del arbol de cuentas analíticas

 

** Changed in: avanzosc
       Status: New => Fix Committed

** Changed in: avanzosc
   Importance: Undecided => Medium

** Changed in: avanzosc
     Assignee: (unassigned) => Urtzi Odriozola (urtzi-odriozola)

-- 
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/849531

Title:
  Bug en la creación del arbol de cuentas analíticas

Status in Avanzosc OpenERP modules:
  Fix Committed

Bug description:
  Al pulsar el botón de creación de cuentas analíticas se obtiene:

  Environment Information : 
  System : Windows-32bit
  OS Name : nt
  Operating System Release : 
  Operating System Version : 32bit
  Operating System Architecture : 32bit
  Operating System Locale : es_ES.cp1252
  Python Version : 2.5.2
  OpenERP-Client Version : 6.0.2
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_analytics_control/wizard/mrp_analytic_schema_wizard.py", line 216, in create_analytic_structure
      account_analytic_obj.calculate_estimated(cr, uid, man_account, est)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_analytics_control/manufacturing_analitic_accounts.py", line 68, in calculate_estimated
      self.calculate_estimated(cr, uid, acc.parent_id.id, amount)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_analytics_control/manufacturing_analitic_accounts.py", line 68, in calculate_estimated
      self.calculate_estimated(cr, uid, acc.parent_id.id, amount)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_analytics_control/manufacturing_analitic_accounts.py", line 59, in calculate_estimated
      acc = analytic_obj.browse(cr, uid, parnt_id)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 544, in browse
      return browse_record(cr, uid, select, self, cache, context=context, list_class=self._list_class, fields_process=fields_process)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 156, in __init__
      raise BrowseRecordError(_('Wrong ID for the browse record, got %r, expected an integer.') % (id,))
  BrowseRecordError: Wrong ID for the browse record, got False, expected an integer.

  -------------------
  Tiene pinta de un error de sintaxis en la llamada a la variable, aquí:
  /manufacturing_analitic_accounts.py", line 59, in calculate_estimated
      acc = analytic_obj.browse(cr, uid, parnt_id)

  parent_id en vez de parnt_id.

To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/849531/+subscriptions


References