← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 882157] Re: [6.0] [account] Cancel invoice is lost invoice number

 

Hello,

I have checked your issue and I am also agree with the comment#1.

When you confirm a invoice again after cancel it. It will again generated a invoice number so this is not a bug but it's behaviour.
Because when the invoice in cancelled state there is no journal entires for this invoice so it doesn't require any invoice number.

Generally the invoice number comes from the name field of journal entires (account.move) when you have validate the invoice the sequence will generated for account.move and this will sequence passed as a invoice number in account invoice.
When you have cancel the invoice the journal entries will removed. You can see at line no 1025 in def action_cancel method the move_id write as a "False" so the journal entires has totally removed that's why you can not seen the invoice number in account.invoice.

As per the functional behaviour, If the the invoice is cancelled that
doesn't need any invoice number. And If you again confirm the same
invoice the invoice number will be generated so this is not a bug it's
behaviour.

So currently I am closing this issue.

Hope this will help for you.

Correct me If I am wrong.

Thanks.

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

** Converted to question:
   https://answers.launchpad.net/openobject-addons/+question/177088

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/882157

Title:
  [6.0] [account] Cancel invoice is lost invoice number

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  1) Confirm a invoice
     Check the invoice number assing
     Now, Cancel the invoice
     Check the invoice number is lost
  2) number is lost
  3) same number before cancel
  4) OpenERP-6.0
  5) revno 4886

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


References