Wrong Journals when creating an invoice from picking

Bug #667246 reported by Harmel Delphine (OpenERP)
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
OpenERP R&D Addons Team 2

Bug Description

* Using demo data, create a purchase order (in extended view) and set the invoicing control as "from picking", confirm it
* In Incoming Shipments, process it and create the invoice
* Select the "Purchase Journal"

=> The system opens the "New picking invoices" view with correct information except the "Journal" which is empty. Only the "Sales Journal" and "Sales Journal (test)" are selectable

Related branches

Revision history for this message
Harmel Delphine (OpenERP) (dha-openerp) wrote :
Changed in openobject-addons:
assignee: nobody → DHS(OpenERP) (dhs-openerp)
Changed in openobject-addons:
assignee: DHS(OpenERP) (dhs-openerp) → OpenERP R&D Team (openerp-dev)
tfr (Openerp) (tfr)
Changed in openobject-addons:
assignee: OpenERP R&D Team (openerp-dev) → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Revision history for this message
Milan Tribuson (milan-infokom) wrote :

I think I've found a similar bug when I create act_window action that will open invoices from sale order with code:
<act_window domain="[('origin','=',name)]" id="sale_order_invoice_view" view_id="account.invoice_form" name="Invoices" res_model="account.invoice" src_model="sale.order"/>
I will be able to open the created list in a tree view, but when I go into that invoice (into form view) I will only be able to select purchase journals even though it is a customer invoice. I think it is a problem because it is opened in the account.invoice view for suppliers, and not for customers. Adding context="{'type': 'out_invoice'}" doesn't help.
The same thing is in the normal installation of OpenERP. When you install minimal configuration and you add sale module (and other modules that are related) you can go to partner form and you'll have an Invoices action that will open invoices for that partner. It opens a tree view with invoices and it works fine but when you go into one invoice (open and invoice form) you will be able to choose only purchase journals (and purchase partners etc...).

Revision history for this message
Leigh Willard (leigh) wrote :

I have almost the same problem, except that my invoice gets created, from my Picking slip (generated from a purchase) in the SALES journal instead of the Purchase journal. And I do have a purchase journal set up and set correctly to the type "Purchase"

Revision history for this message
Leigh Willard (leigh) wrote :

Similarly my invoice # gets set to sale/2010/0001 even though it is a purchase not a sale and came from an incoming picking.

Changed in openobject-addons:
status: New → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → In Progress
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote :

"from picking" when create invoice manually from wizard then it will be see correct "Journal Type" (which had selected on from "New picking invoices" wizard) ..save then open from Accounting->supplier->supplier Invoice at that time Invoice Type not seeing there.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote :

Hello Harmel Delphine,

Thanks for reporting,
It has been fixed inlp:~openerp-dev/openobject-addons/ron-dev-addons2
Revision ID: <email address hidden>
Revision num: 5043.
It will be available in trunk soon,

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.