← Back to team overview

openerp-india team mailing list archive

[Bug 1031699] [NEW] edi generation timeout, Invoice creation fails!

 

Public bug reported:

I made some automations in the account.invoice.basic, so the invoices
are generatet and sent to the customer. This fails sometimes, and
sometimes works. If it fails, it comes with the following message:

Warning: edi Invoice generation failed for
browse.record('account.invoice', 458), etc..

That means (if I understand this right), there is an Invoice with the ID
458, but can't be found.

I change the value addons/edi/models/edi.py, line 462, "time.sleep(3)" to "time.sleep(30)", 
Now, it takes 30 seconds, until the edi PDF File is created, instead of 3 seconds. 

Is that a bug, or is that just some code, which needs improvement? There is also a comment:
"lame workaround to wait for commit of parent transaction"

??

Thx, 
Ingl

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: account edi invoice sleep time timeout

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1031699

Title:
  edi generation timeout, Invoice creation fails!

Status in OpenERP Server:
  New

Bug description:
  I made some automations in the account.invoice.basic, so the invoices
  are generatet and sent to the customer. This fails sometimes, and
  sometimes works. If it fails, it comes with the following message:

  Warning: edi Invoice generation failed for
  browse.record('account.invoice', 458), etc..

  That means (if I understand this right), there is an Invoice with the
  ID 458, but can't be found.

  I change the value addons/edi/models/edi.py, line 462, "time.sleep(3)" to "time.sleep(30)", 
  Now, it takes 30 seconds, until the edi PDF File is created, instead of 3 seconds. 

  Is that a bug, or is that just some code, which needs improvement? There is also a comment:
  "lame workaround to wait for commit of parent transaction"

  ??

  Thx, 
  Ingl

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


Follow ups

References