← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 667246] Re: Wrong Journals when creating an invoice from picking

 

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...).

-- 
Wrong Journals when creating an invoice from picking
https://bugs.launchpad.net/bugs/667246
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

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





References