Error "unexpected indent" en onchange_pay_amount() al instalar account_check_multi

Bug #863492 reported by Bruno M. Villasanti (Thymbra)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-argentina
Fix Released
High
Bruno M. Villasanti (Thymbra)

Bug Description

Mensaje de salida del openerp-server describiendo el error :

[2011-09-30 14:14:09,123][argentina60_demo] INFO:init:module account_check_multi: registering objects
[2011-09-30 14:14:09,127][argentina60_demo] CRITICAL:init:Couldn't load module account_check_multi
[2011-09-30 14:14:09,128][argentina60_demo] CRITICAL:init:[01]: unexpected indent
[2011-09-30 14:14:09,128][argentina60_demo] CRITICAL:init:[02]: ('/home/bruno/src/openerp-argentina/openerp-server/6.0/openerp-server/bin/addons/account_check_multi/account_voucher_multi.py', 102, 16, " + amount_checks['third_check_amount']\n")
[2011-09-30 14:14:09,129][argentina60_demo] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/bruno/src/openerp-argentina/openerp-server/6.0/openerp-server/bin/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/addons/__init__.py", line 883, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/addons/__init__.py", line 716, in load_module_graph
    register_class(package.name)
  File "/media/SOURCE/src/openerp-argentina/openerp-server/6.0/openerp-server-6.0.3/bin/addons/__init__.py", line 450, in register_class
    imp.load_module(m, *fm)
  File "/home/bruno/src/openerp-argentina/openerp-server/6.0/openerp-server/bin/addons/account_check_multi/__init__.py", line 19, in <module>
    import account_voucher_multi
  File "/home/bruno/src/openerp-argentina/openerp-server/6.0/openerp-server/bin/addons/account_check_multi/account_voucher_multi.py", line 102
     + amount_checks['third_check_amount']
    ^
 IndentationError: unexpected indent

Las siguientes líneas :
        data['amount'] = amount_checks['issued_check_amount']
                + amount_checks['third_check_amount']
                + amount_checks['third_check_receipt_amount']
                + amount_pay_mode.get('value').get('amount')

Reemplazarlas por :
        data['amount'] = amount_checks['issued_check_amount'] \
                + amount_checks['third_check_amount'] \
                + amount_checks['third_check_receipt_amount'] \
                + amount_pay_mode.get('value').get('amount')

Se adjunta .patch de bazaar.

Revision history for this message
Bruno M. Villasanti (Thymbra) (brunovillasanti) wrote :
Changed in openerp-argentina:
assignee: nobody → Bruno M. Villasanti (Thymbra) (brunovillasanti)
importance: Undecided → High
status: New → Confirmed
Changed in openerp-argentina:
status: Confirmed → 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.