c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08657
[Bug 690700] Re: [purchase-stock] Wrong Partner used when invoicing from picking coming from a puchase with sent_to_address
Hello ksa,
what about when invoice from picking coming from a sale order
this was your change
872 partner = picking.purchase_id.partner_id
my suggestion:
partner = picking.purchase_id and picking.purchase_id.partner_id or picking.sale_id and picking.sale_id.partner_id
Thanks in advance
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/690700
Title:
[purchase-stock] Wrong Partner used when invoicing from picking coming from a puchase with sent_to_address
Status in OpenObject Addons Modules:
Fix Committed
Bug description:
How to replicate:
Let's create a new purchase order.
Select a supplier,
Create new purchase lines.
In the tab regarding invoice/picking, select that you want to send the products to the clients directly instead of you, so you select a _customer_ partner address,
Select that you want _invoice_from_picking_,
Approve as many times as it is needed.
Go to incoming pickings,
Let's say that all the product received are the ones in your P.O. (no difference)
Approve the picking
Then select in the right side bar the action create invoice,
Select Purchase Invoice, and proceed,
The draft purchase invoice create is associated to the customer partner (wrong) not to the supplier partner,
the picking is already related to the P.O. so the partner that should be related to the newly created invoice could come from it.
an not from the partner_address field filled in the picking, as long as there is P.O. (or S.O regarding to sale orders & sale invoices)
References