c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #33649
[Bug 863492] [NEW] Error "unexpected indent" en onchange_pay_amount() al instalar account_check_multi
Public bug reported:
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.
** Affects: openerp-argentina
Importance: High
Assignee: Bruno M. Villasanti (Thymbra) (brunovillasanti)
Status: Confirmed
--
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/863492
Title:
Error "unexpected indent" en onchange_pay_amount() al instalar
account_check_multi
Status in OpenERP Localization for Argentina:
Confirmed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-argentina/+bug/863492/+subscriptions
Follow ups
References