← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 834530] Re: [multicompanies] paying invoice

 

*** This bug is a duplicate of bug 823731 ***
    https://bugs.launchpad.net/bugs/823731

Hello,

This issue relates with the wrong sequence assignment with the different
company in voucher journal.

The this error will solve when the appropriate company sequence assign
to journal. The problem of sequence is already posted with the bug
lp:823731


** This bug has been marked a duplicate of bug 823731
   [Trunk] : Jornal Entry sequence doesn't generated for another company.

-- 
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/834530

Title:
  [multicompanies] paying invoice

Status in OpenERP Modules (addons):
  New

Bug description:
  Make invoice with company_id linked with company A while logged in user is linked with company B.
  Try to pay it. I got:

  File "/usr/lib/python2.7/site-packages/openerp-server/osv/orm.py", line 181, in <lambda>
      return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
    File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 559, in proforma_voucher
      self.action_move_line_create(cr, uid, ids, context=context)
    File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 648, in action_move_line_create
      ref = name.replace('/','')
  AttributeError: 'bool' object has no attribute 'replace'

  The "name" field of the voucher was filled with False value since
  get_id function  of Sequence object checks whether currently logged in
  user's company is the same that in company_id field of Sequence.

  In such a case invoice does't get a proper number as well.
  I think the error message should be more informative at least.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/834530/+subscriptions


References