c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #32449
[Bug 853917] Re: Error instalación ou_account_payment 5.0.1.2
El siguiente es el bloque completo del código en cuestión :
class payment_recibos(osv.osv):
[...]
def button_advance(self, cr, uid, ids, context={}):
for id in ids:
rec = self.browse(cr, uid, id)
if rec.line_ids:
#print 'Rec3: ', rec.line_ids
# TODO: TENEMOS QUE BORRAR LAS LINEAS DEL RECIBO
#self.write(cr, uid, id, {'line_ids': [(2, )]})
#print 'Rec4: ', rec.line_ids
self.write(cr, uid, id, {'only_advance': True})
rec = self.browse(cr, uid, id)
return True
Al parecer, Sebastián K. dejó pendiente la eliminación de las líneas del
Recibo comentando las líneas dentro del bloque IF. De allí el error
"IndentationError: expected an indented block".
Para salir del paso, y por el momento, habría que comentar también la
línea "if rec.line_ids:", hasta encontrar una mejor solución o completar
la intención primera que se quiso implementar.
Saludos,
Bruno M. Villasanti
** Changed in: openerp-argentina
Importance: Undecided => Medium
** Changed in: openerp-argentina
Status: New => Confirmed
** Changed in: openerp-argentina
Assignee: (unassigned) => Sebastian Kennedy (sebastiken)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/853917
Title:
Error instalación ou_account_payment 5.0.1.2
Status in OpenERP Localization for Argentina:
Confirmed
Bug description:
Error al momento de instalar el modulo de ou_account_payment 5.0.1.2(Actualización de S.Kennedy).
Me queda pendiente probar con otras bases.
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 77, in __call__
return getattr(self, method)(*params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 633, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 613, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 178, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 61, in restart_pool
return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 736, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 576, in load_module_graph
register_class(package.name)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 404, in register_class
zimp.load_module(m)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/ou_account_payment.zip/ou_account_payment/__init__.py", line 33, in <module>
File "/usr/lib/python2.6/dist-packages/uno.py", line 262, in _uno_import
return _g_delegatee( name, *optargs, **kwargs )
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/ou_account_payment.zip/ou_account_payment/recibos.py", line 648
self.write(cr, uid, id, {'only_advance': True})
^
IndentationError: expected an indented block
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-argentina/+bug/853917/+subscriptions
References