c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #13473
[Bug 705356] Re: [5.0.15] asset_account module cannot associate invoice with asset
Hello Frederic,
I have tested your scenario at my end. But all are working fine. So i am closing this bug.
If you still face problem then you can reopen it.
I have attached a screen-shots for your reference so please check it.
Thanks.
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/705356
Title:
[5.0.15] asset_account module cannot associate invoice with asset
Status in OpenERP Modules (addons):
Invalid
Bug description:
based on asset_account module
1 - In Finance menu / Config/Assets/assets, create a new asset
2 - Create a supplier invoice and in the invoice line (From view) select your asset
3 - Try to validate
When creating invoice line and selecting the asset that I have already
created, I cannot validate the invoice and I get:
Environment Information :
System : Linux-2.6.32-27-generic-pae-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-27-generic-pae
Operating System Version : #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : fr_CH.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.15
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/netsvc.py", line 299, in dispatch
result = LocalService(service_name)(method, *params)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/netsvc.py", line 77, in __call__
return getattr(self, method)(*params)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/service/web_services.py", line 571, in exec_workflow
res = service.exec_workflow(db, uid, object, method, id)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/osv/osv.py", line 58, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/osv/osv.py", line 137, in exec_workflow
res = self.exec_workflow_cr(cr, uid, obj, method, *args)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/osv/osv.py", line 130, in exec_workflow_cr
return wf_service.trg_validate(uid, obj, args[0], method, cr)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/wkf_service.py", line 81, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/instance.py", line 50, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 62, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 42, in create
process(cr, res, ident, stack=stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 54, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/workitem.py", line 108, in _execute
wkf_expr.execute(cr, ident, workitem, activity)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/wkf_expr.py", line 69, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/workflow/wkf_expr.py", line 59, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/tools/safe_eval.py", line 272, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/osv/orm.py", line 168, in <lambda>
return lambda *args, **argv: getattr(self._table, name)(self._cr, self._uid, [self._id], *args, **argv)
File "/home/fclementi/openerp-instances/OERP_5.0.15/server/bin/addons/account_asset/account_asset_invoice.py", line 85, in action_move_create
_("\nPrice: ") + str(line.price_subtotal)
TypeError: cannot concatenate 'str' and 'bool' objects
References