Only backorder picking is displayed: can't invoice partial receipt

Bug #888818 reported by Kevin McMenamin
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

Raise a PO with invoice control = from picking. In receive shipments/process product moves do a partial receipt by changing quantity and press validate.
The screen displayed is the incoming shipment screen for the backorder, not the incoming shipment screen for what has been received, so there is no button to press to create the draft.
Have checked under the purchasing and accounting menus and there is nowhere to create the invoice.

It also makes it quite complex (though not impossible) to print the delivery note, or create an invoice from a delivery, when there is a delivery back-order.

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Low
status: New → Confirmed
tags: added: maintenance
Revision history for this message
Numérigraphe (numerigraphe) wrote : Re: Only backorder picking is displayed: can't invoice partial receipt because

This affects outgoing and internal moves too. This is mitigated by the menu entry in "sales", but the problem still shows when trying to invoice a delivery you create directly.
Lionel Sausin.

tags: added: partial-deliery
tags: added: partial-delivery
removed: partial-deliery
summary: - PO invoice from picking - partial receipt stops draft invoice creation
+ Only backorder picking is displayed: can't invoice partial receipt
+ because
summary: Only backorder picking is displayed: can't invoice partial receipt
- because
Revision history for this message
Numérigraphe (numerigraphe) wrote :

This can probably be solved by opening the original picking when a backorder is created.
In a custom development of ours I did the following, probably it can be done in the standard too:
After creating the first back order:
                    if pick.type=='in':
                        view = 'view_picking_in_form'
                    elif pick.type=='out':
                        view = 'view_picking_out_form'
                    elif pick.type=='internal':
                        view = 'view_picking_form'
                    model_data_ids = obj_model.search(cr,uid,
                        [('model', '=', 'ir.ui.view'), ('name', '=', view)])
                    resource_id = obj_model.read(cr, uid, model_data_ids,
                        fields=['res_id'])[0]['res_id']
                    views = [(resource_id, 'form')]
And later at the end of the method:
        return new_ids and {'name': "Processed Picking",
                                'view_mode': 'form',
                                'view_type': 'form',
                                'views': views,
                                'res_model': 'stock.picking',
                                'res_id': new_ids,
                                'type': 'ir.actions.act_window',
                                'nodestroy': True,
                                'domain': '[]',
                                'context': context} or True
I can't propose a branch with a fix but I hope this helps.
Lionel.

Revision history for this message
Numérigraphe (numerigraphe) wrote :

I suggest this should be set a higher priority and be fixed before v7.0 is released, because the main goal of 7.0 is simplicity and this goes towards this goal.

description: updated
description: updated
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

Remote bug watches

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