[TRUNK]:Warning: ('Error !', u'There is no sales journal defined for this company: "Shop 1" (id:6)')

Bug #863130 reported by Ajay Patel (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 3

Bug Description

while installing the sale module i get the this trackback :

[2011-09-30 08:58:15,282][trunk] ERROR:tools.convert.xml_import:Parse error in /home/amit/sources/addons/trunk/sale/sale_demo.xml:213:
<workflow action="manual_invoice" model="sale.order" ref="order6"/>
Traceback (most recent call last):
  File "/home/amit/sources/server/trunk/openerp/tools/convert.py", line 888, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/amit/sources/server/trunk/openerp/tools/convert.py", line 563, in _tag_workflow
    str(rec.get('action','')), cr)
  File "/home/amit/sources/server/trunk/openerp/workflow/wkf_service.py", line 124, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/amit/sources/server/trunk/openerp/workflow/instance.py", line 48, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 61, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 174, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 182, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 41, in create
    process(cr, res, ident, stack=stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 53, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/amit/sources/server/trunk/openerp/workflow/workitem.py", line 126, in _execute
    id_new = wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/amit/sources/server/trunk/openerp/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/amit/sources/server/trunk/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/home/amit/sources/server/trunk/openerp/tools/safe_eval.py", line 286, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/amit/sources/server/trunk/openerp/osv/orm.py", line 344, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/home/amit/sources/addons/trunk/sale/sale.py", line 524, in action_invoice_create
    res = self._make_invoice(cr, uid, order, il, context=context)
  File "/home/amit/sources/addons/trunk/sale/sale.py", line 403, in _make_invoice
    _('There is no sales journal defined for this company: "%s" (id:%d)') % (order.company_id.name, order.company_id.id))
Warning: ('Error !', u'There is no sales journal defined for this company: "Shop 1" (id:6)')

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello ,

I am confirming this issue.

I have checked with following revision :

 Trunk :

    Server : 3682
    addons : 5239
  gtk-client : 1962

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
importance: Medium → High
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

This was fixed as soon as it was discovered, since it broke our runbot builds ;-)
Fixed in addons trunk at revision 5240 revid: <email address hidden>

Changed in openobject-addons:
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.