← Back to team overview

openerp-india team mailing list archive

[Bug 1092211] Re: Problem with created invoice when doing partial shipment

 

Hello Amit,

Thank you for reply. Sorry, I might not be detailed enough.

The error will occur only in the case when setting in Warehouse,
--> Create and open the invoice when the user finish a delivery order = YES.
Please try again, I am sure you will get the error.

With this setting, the create invoice wizard will pop up immediately we
select quantity and delivery.

When the above setting = No, Delivery Order is splitted first and user will click on the right DO later (passing correct active_id) so the Invoice is created correctly.
But if Yes, then the first DO's active_id will be passed, while in fact the new DO is generated and delivered but the active_id is not changed, so the invoice is generated for the wrong DO.

I just found the problem and fix it as below,
1. addons/stock/stock.do_partial --> return the delivered_id
2. addons/stock/wizard/stock_partial_picking.do_partial --> need to accept the delivered_id
3. addons/stock_invoice_directly/wizard/stock_invoice --> need to put delivered_id (if available) into active_id (now it is wrong active_id)

I also attached the fix here (I still don't know how to fix in trunk),
just small change (you search for my name "kittiu").

** Attachment added: "patch.zip"
   https://bugs.launchpad.net/openobject-addons/+bug/1092211/+attachment/3465191/+files/patch.zip

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1092211

Title:
  Problem with created invoice when doing partial shipment

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  With ver7,
  (Build 2793)
  server (4712)
  addons (8410)
  web (3638)

  Given the setting
  Sale / Generate invoices after and based on delivery orders = YES

  Steps
  =====
  1. Create new Sales Order with, i.e., Computer Case = 20 units
  2. On SO, click button "View Delivery Order" --> click button "Force Availability" --> Click button "Deliver"
  3. On the Deliver Products wizard, change unit to 5 units, click button "Deliver"
  4. On the Create Invoice wizard, select invoice date and click "Create"
  5. It bring to Invoice page, the Draft invoice is ----> 15 Units.

  It should be 5 units, isn't it?

  It seem to create the invoice for the unshipped products, instead of
  the shipped products.

  Kitti U.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1092211/+subscriptions


References