[6.0 RC1] Create invoice from Outgoing Deliveries type is not in context

Bug #677008 reported by Quentin THEURET @Amaris
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

When create an invoice from an outgoing deliveries, the wizard ask you the journal.

After the creation of the invoice, you can see the created invoice, but the journal is not record in the invoice. When you try to change the journal, only 'purchase' type journal is possible, but we are in the 'Outgoing deliveries' so the available journals should be 'sale' type.

The problem comes because of the attribute 'type' is not passed in the context.

Related branches

Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

It's more complicated than this error of context :

The created invoice is an out_invoice, but out_invoice is an invoice to send to a customer when here, you want to create a invoice to pay to a supplier.

It's big problem for accounting module.

Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

There is sample of a patch to correct this bug.

description: updated
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

I confirming this issue because the wizard will allow to select all type of journals which is not correct.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

I send you a second patch because the first one is not cover all possibilities.

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

With latest version, i cant produce this bug. Can you check it with latest revision and revert back ?

But i found another one in purchase. For that, i have created a PO with invoice control = 'from order' and clicked on 'convert to purchase order' button. Then you can see created invoice in invoice field displayed in delivery & invoicing tab which will open customer invoice form with 'sale' journal instead of supplier invoice and 'purchase' journal.

So now its fixed in addons3 branch.
revision-id: mra@mra-laptop-20101208064448-vd3k0ek49iad9i50
revno: 4723

Thanks.

Changed in openobject-addons:
status: In Progress → 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.