← Back to team overview

openerp-india team mailing list archive

[Bug 961760] Re: 6.1 duplicate invoice

 

Hello Ana,

I have checked your issue. In account_invoice.py line no 612 ,we have
"def copy" method . When I remove this method from that file ,I will got
this error message as you got  " duplicate key value violates unique
constraint "account_invoice_number_uniq" .

Right now it is working fine .All this procedure ,I have shown in
video.Please take a look.

Hope this will help you.!!!

Thanks!!

** Attachment added: "Watch this video for more info..!!"
   https://bugs.launchpad.net/openobject-addons/+bug/961760/+attachment/2915642/+files/invoice_duplicate.ogv

** Changed in: openobject-addons
       Status: New => Incomplete

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

Title:
  6.1 duplicate invoice

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  There is a functionality fault or regression from 6.0.
  On 6.1 is not possible duplicating invoices. The warning shown on screen is
  "duplicate key value violates unique constraint "account_invoice_number_uniq"

  This is produced because on duplicating invoice, the field
  invoice_number is not cleaned. If we are duplicating an invoice, the
  invoice_number should never be the same in 2 invoices, so the warning
  is right but the procedure of duplicating this object is not.

  Problem comes from 6.0 where we could duplicate the invoice but the invoice_number was mantained even if new invoice was set on draft status.
  We built a module for 6.0 (avanzosc_invoice_duplicate) to avoid this problem but the correct way would be including a right procedure to duplicate invoices on core.

  Thank you very much:
  Ana

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


References