← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 663890] Re: Creating invoices and grouping multiplies services

 

Hi ron!

I was checking your changes in stock/wizard/stock_invoice_onshipping.py
and is there a reason to have an if-then block like you wrote from lines
128 to 141 because the statements are the same in "if" and "else" block?
And is there a reason to create invoice_obj and invoice_line_obj when
you don't use them? (or maybe you use them somewehere else in code?)

-- 
Creating invoices and grouping multiplies services
https://bugs.launchpad.net/bugs/663890
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: Fix Released

Bug description:
Running wizard "Create invoice" with "Group" option checked from outgoing products for 2 or more picking lists that are created from a same sale order, invoice will be created with multiplied service products (ie. if there is a sale order with 1 stockable product and 1 service and 2 picking lists -> invoice will have 1 stockable products and 2 services)...
When I create invoices one picking at the time, all service products form sale order will be added to the first invoice (created from the first picking) and other invoices created from other picking lists which were created from the sale order will have no service products on them (which is more or less ok).
So, this is a bug when we create 1 invoice with group option checked for all picking lists created from the same sale order .

I'm using version 5.0.14





References